2013-12-05 03:09:19 +08:00
|
|
|
// RUN: %clang -g -S -emit-llvm %s -o - | FileCheck %s
|
2011-12-13 13:09:22 +08:00
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "p"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: baseType: ![[INT:[0-9]+]]
|
|
|
|
// CHECK-SAME: DIFlagPublic
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: ![[INT]] = !DIBasicType(name: "int"
|
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "pr"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-NOT: flags:
|
|
|
|
// CHECK-SAME: baseType: ![[INT]]
|
2010-04-22 07:12:37 +08:00
|
|
|
|
|
|
|
class A {
|
|
|
|
public:
|
|
|
|
int p;
|
|
|
|
private:
|
|
|
|
int pr;
|
|
|
|
};
|
|
|
|
|
|
|
|
A a;
|