blob: 3b23ebf7dedc984f144e04b0b0046ff8e02c0e4e [file] [log] [blame]
Douglas Katzman3459ce22015-10-08 04:24:12 +00001// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s
Eric Christopher1c3785a2012-02-18 00:50:17 +00002
Eric Christopher75b90c42012-02-08 00:23:18 +00003class Test
4{
5public:
6 Test () : reserved (new data()) {}
Eric Christopherf76dd562012-02-08 00:23:21 +00007
Eric Christopher75b90c42012-02-08 00:23:18 +00008 unsigned
9 getID() const
10 {
11 return reserved->objectID;
12 }
13protected:
Eric Christopherf76dd562012-02-08 00:23:21 +000014 struct data {
Eric Christopher75b90c42012-02-08 00:23:18 +000015 unsigned objectID;
Eric Christopherf76dd562012-02-08 00:23:21 +000016 };
Eric Christopher75b90c42012-02-08 00:23:18 +000017 data* reserved;
18};
19
20Test t;
21
Adrian McCarthya9a89ae2016-07-21 13:41:25 +000022// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "data"
Adrian McCarthyab1e7862016-07-21 18:43:20 +000023// CHECK: !DIDerivedType(tag: DW_TAG_pointer_type
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000024// CHECK-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "data"