1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -g -triple x86_64-apple-darwin -fstandalone-debug %s -o - | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc class Test 4f4a2713aSLionel Sambuc { 5f4a2713aSLionel Sambuc public: Test()6f4a2713aSLionel Sambuc Test () : reserved (new data()) {} 7f4a2713aSLionel Sambuc 8f4a2713aSLionel Sambuc unsigned getID() const9f4a2713aSLionel Sambuc getID() const 10f4a2713aSLionel Sambuc { 11f4a2713aSLionel Sambuc return reserved->objectID; 12f4a2713aSLionel Sambuc } 13f4a2713aSLionel Sambuc protected: 14f4a2713aSLionel Sambuc struct data { 15f4a2713aSLionel Sambuc unsigned objectID; 16f4a2713aSLionel Sambuc }; 17f4a2713aSLionel Sambuc data* reserved; 18f4a2713aSLionel Sambuc }; 19f4a2713aSLionel Sambuc 20f4a2713aSLionel Sambuc Test t; 21f4a2713aSLionel Sambuc 22f4a2713aSLionel Sambuc // CHECK: ; [ DW_TAG_pointer_type ] 23f4a2713aSLionel Sambuc // CHECK: ; [ DW_TAG_structure_type ] [data] 24f4a2713aSLionel Sambuc // CHECK-NOT: ; [ DW_TAG_structure_type ] [data] 25