Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-dup-fwd-decl.cpp
blob3b23ebf7dedc984f144e04b0b0046ff8e02c0e4e
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s
3 class Test
5 public:
6 Test () : reserved (new data()) {}
8 unsigned
9 getID() const
11 return reserved->objectID;
13 protected:
14 struct data {
15 unsigned objectID;
17 data* reserved;
20 Test t;
22 // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "data"
23 // CHECK: !DIDerivedType(tag: DW_TAG_pointer_type
24 // CHECK-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "data"