]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/debug-info-dup-fwd-decl.cpp
Vendor import of clang trunk r290819:
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / debug-info-dup-fwd-decl.cpp
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple x86_64-apple-darwin %s -o - | FileCheck %s
2
3 class Test
4 {
5 public:
6     Test () : reserved (new data()) {}
7
8     unsigned
9     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: !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"