1 // RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s 2 3 class MyFriend; 4 5 class SomeClass { 6 friend class MyFriend; 7 typedef int SomeType; 8 }; 9 10 SomeClass *x; 11 12 struct MyFriend { 13 static void func(SomeClass::SomeType) { 14 } 15 }; 16 17 // Emitting debug info for friends unnecessarily bloats debug info without any 18 // known benefit or debugger feature that requires it. Re-enable this is a 19 // use-case appears. 20 // CHECK-NOT: DW_TAG_friend 21