1 // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin -fno-limit-debug-info %s -o - | FileCheck %s 2 3 class Test 4 { 5 public: Test()6 Test () : reserved (new data()) {} 7 8 unsigned getID() const9 getID() const 10 { 11 return reserved->objectID; 12 } 13 protected: 14 struct data { 15 unsigned objectID; 16 }; 17 data* reserved; 18 }; 19 20 Test t; 21 22 // CHECK: metadata !"", null, i32 0, i64 64, i64 64, i64 0, i32 0, metadata {{.*}} [ DW_TAG_pointer_type ] 23 // CHECK: metadata !"data", metadata !6, i32 14, i64 32, i64 32, i32 0, i32 0 24 // CHECK-NOT: metadata !"data", metadata {{.*}}, i32 14, i64 0, i64 0, i32 0, i32 4, 25