2013-08-18 04:50:23 +00:00
|
|
|
// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
|
2010-08-27 17:47:47 +00:00
|
|
|
|
|
|
|
class MyFriend;
|
|
|
|
|
2013-08-18 04:50:23 +00:00
|
|
|
class SomeClass {
|
|
|
|
friend class MyFriend;
|
|
|
|
typedef int SomeType;
|
2010-08-27 17:47:47 +00:00
|
|
|
};
|
|
|
|
|
2013-08-18 04:50:23 +00:00
|
|
|
SomeClass *x;
|
2010-08-27 17:47:47 +00:00
|
|
|
|
2013-08-18 04:50:23 +00:00
|
|
|
struct MyFriend {
|
|
|
|
static void func(SomeClass::SomeType) {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-09-13 18:45:00 +00: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
|