blob: 04fe7a03e1685524bf65c026dcc0f6c5d8b12bdf [file] [log] [blame]
Eric Christopher1c3785a2012-02-18 00:50:17 +00001// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin -fno-limit-debug-info %s -o - | FileCheck %s
2
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
David Blaikie86eac722013-03-19 23:10:14 +000022// CHECK: ; [ DW_TAG_pointer_type ]
23// CHECK: ; [ DW_TAG_structure_type ] [data]
24// CHECK-NOT: ; [ DW_TAG_structure_type ] [data]