summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
diff options
context:
space:
mode:
authorAdrian McCarthy <amccarth@google.com>2016-07-06 14:46:42 +0000
committerAdrian McCarthy <amccarth@google.com>2016-07-06 14:46:42 +0000
commit73d726a6cc2e4382bee533ea2e807ed7f831c74c (patch)
treeb5ed4d7bc0e5acdcedebe7e6436814f9de564e89 /clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
parent433cb1dfe31a85e5e39743032a18c96bf12ce955 (diff)
downloadbcm5719-llvm-73d726a6cc2e4382bee533ea2e807ed7f831c74c.tar.gz
bcm5719-llvm-73d726a6cc2e4382bee533ea2e807ed7f831c74c.zip
Include debug info for nested structs and classes
This includes nested types in the member list, even if there are no members of that type. Note that structs and classes have themselves as an "implicit struct" as the first member, so we skip implicit ones. Differential Revision: http://reviews.llvm.org/D21705 llvm-svn: 274628
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp b/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
index 70b233cac4d..5642719a517 100644
--- a/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
+++ b/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
@@ -8,18 +8,18 @@ template <class T, int T::*ptr> class Foo { };
struct Bar {
int i1;
// CHECK: ![[INT:[0-9]+]] = !DIBasicType(name: "int"
- // CHECK: !DIDerivedType(tag: DW_TAG_member, scope:
- // CHECK-SAME: line: [[@LINE+4]]
- // CHECK-SAME: baseType: ![[UNION:[0-9]+]]
- // CHECK-SAME: size: 32, align: 32, offset: 32
- // CHECK: ![[UNION]] = distinct !DICompositeType(tag: DW_TAG_union_type,{{.*}} identifier: "_ZTSN3BarUt_E")
+ // CHECK: ![[UNION:[0-9]+]] = distinct !DICompositeType(tag: DW_TAG_union_type,{{.*}} identifier: "_ZTSN3BarUt_E")
union {
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "i2",
- // CHECK-SAME: line: [[@LINE+5]]
+ // CHECK-SAME: line: [[@LINE+9]]
// CHECK-SAME: baseType: ![[INT]]
// CHECK-SAME: size: 32, align: 32
// CHECK-NOT: offset:
// CHECK-SAME: ){{$}}
+ // CHECK: !DIDerivedType(tag: DW_TAG_member, scope:
+ // CHECK-SAME: line: [[@LINE-8]]
+ // CHECK-SAME: baseType: ![[UNION]]
+ // CHECK-SAME: size: 32, align: 32, offset: 32
int i2;
};
};
OpenPOWER on IntegriCloud