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) {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
// CHECK: DW_TAG_friend
|