2013-08-18 12:50:23 +08:00
|
|
|
// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
|
2010-08-28 01:47:47 +08:00
|
|
|
|
|
|
|
class MyFriend;
|
|
|
|
|
2013-08-18 12:50:23 +08:00
|
|
|
class SomeClass {
|
|
|
|
friend class MyFriend;
|
|
|
|
typedef int SomeType;
|
2010-08-28 01:47:47 +08:00
|
|
|
};
|
|
|
|
|
2013-08-18 12:50:23 +08:00
|
|
|
SomeClass *x;
|
2010-08-28 01:47:47 +08:00
|
|
|
|
2013-08-18 12:50:23 +08:00
|
|
|
struct MyFriend {
|
|
|
|
static void func(SomeClass::SomeType) {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-09-14 02:45:00 +08:00
|
|
|
// Emitting debug info for friends unnecessarily bloats debug info without any
|
|
|
|
// known benefit or debugger feature that requires it. Re-enable this is a
|
|
|
|
// use-case appears.
|
|
|
|
// CHECK-NOT: DW_TAG_friend
|