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