Eric Christopher | 2f764a9 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin %s -o - | FileCheck %s |
| 2 | class Test |
| 3 | { |
| 4 | public: |
| 5 | Test () : reserved (new data()) {} |
Eric Christopher | 531b1a9 | 2012-02-08 00:23:21 +0000 | [diff] [blame^] | 6 | |
Eric Christopher | 2f764a9 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 7 | unsigned |
| 8 | getID() const |
| 9 | { |
| 10 | return reserved->objectID; |
| 11 | } |
| 12 | protected: |
Eric Christopher | 531b1a9 | 2012-02-08 00:23:21 +0000 | [diff] [blame^] | 13 | struct data { |
Eric Christopher | 2f764a9 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 14 | unsigned objectID; |
Eric Christopher | 531b1a9 | 2012-02-08 00:23:21 +0000 | [diff] [blame^] | 15 | }; |
Eric Christopher | 2f764a9 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 16 | data* reserved; |
| 17 | }; |
| 18 | |
| 19 | Test t; |
| 20 | |
| 21 | // CHECK: metadata !"data", metadata !7, i32 13, i64 32, i64 32, i32 0, i32 0 |
| 22 | // CHECK: metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata !5} ; [ DW_TAG_pointer_type ] |
| 23 | // CHECK-NOT: metadata !"data", metadata !7, i32 13, i64 0, i64 0, i32 0, i32 4, |