2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s
|
2012-02-18 08:50:17 +08:00
|
|
|
|
2012-02-08 08:23:18 +08:00
|
|
|
class Test
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Test () : reserved (new data()) {}
|
2012-02-08 08:23:21 +08:00
|
|
|
|
2012-02-08 08:23:18 +08:00
|
|
|
unsigned
|
|
|
|
getID() const
|
|
|
|
{
|
|
|
|
return reserved->objectID;
|
|
|
|
}
|
|
|
|
protected:
|
2012-02-08 08:23:21 +08:00
|
|
|
struct data {
|
2012-02-08 08:23:18 +08:00
|
|
|
unsigned objectID;
|
2012-02-08 08:23:21 +08:00
|
|
|
};
|
2012-02-08 08:23:18 +08:00
|
|
|
data* reserved;
|
|
|
|
};
|
|
|
|
|
|
|
|
Test t;
|
|
|
|
|
2016-07-21 21:41:25 +08:00
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "data"
|
2016-07-22 02:43:20 +08:00
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_pointer_type
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "data"
|