Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s |
Eric Christopher | 1c3785a | 2012-02-18 00:50:17 +0000 | [diff] [blame] | 2 | |
Eric Christopher | 75b90c4 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 3 | class Test |
| 4 | { |
| 5 | public: |
| 6 | Test () : reserved (new data()) {} |
Eric Christopher | f76dd56 | 2012-02-08 00:23:21 +0000 | [diff] [blame] | 7 | |
Eric Christopher | 75b90c4 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 8 | unsigned |
| 9 | getID() const |
| 10 | { |
| 11 | return reserved->objectID; |
| 12 | } |
| 13 | protected: |
Eric Christopher | f76dd56 | 2012-02-08 00:23:21 +0000 | [diff] [blame] | 14 | struct data { |
Eric Christopher | 75b90c4 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 15 | unsigned objectID; |
Eric Christopher | f76dd56 | 2012-02-08 00:23:21 +0000 | [diff] [blame] | 16 | }; |
Eric Christopher | 75b90c4 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 17 | data* reserved; |
| 18 | }; |
| 19 | |
| 20 | Test t; |
| 21 | |
Adrian McCarthy | a9a89ae | 2016-07-21 13:41:25 +0000 | [diff] [blame] | 22 | // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "data" |
Adrian McCarthy | ab1e786 | 2016-07-21 18:43:20 +0000 | [diff] [blame] | 23 | // CHECK: !DIDerivedType(tag: DW_TAG_pointer_type |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 24 | // CHECK-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "data" |