summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-19 23:10:14 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-19 23:10:14 +0000
commit86eac722f9e7478d90c240e4a8c11a8fa2318f1d (patch)
tree05de80af79da4ce48771352064500ce5ac01b84c /clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
parent2c0473563096131603232069a9d2c29c3eb4d605 (diff)
downloadbcm5719-llvm-86eac722f9e7478d90c240e4a8c11a8fa2318f1d.tar.gz
bcm5719-llvm-86eac722f9e7478d90c240e4a8c11a8fa2318f1d.zip
Simplify/generalize some debug info test cases
Mostly, try to depend on the annotation comments more so these tests are more legible, brief, and agnostic to schema changes in the future (sure, they're not agnostic to changes to the comment annotations but since they're easier to read they should be easier to update if that happens). llvm-svn: 177457
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp b/clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
index 4faed5f87d9..fb47022b646 100644
--- a/clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
+++ b/clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
@@ -6,8 +6,7 @@ class A {
};
A a;
-// CHECK: !{{.*}} = metadata !{i32 {{.*}}, metadata {{.*}}, metadata !"x", metadata {{.*}}, i32 5, i64 0, i64 0, i64 0, i32 1, metadata [[ARRAY_TYPE:.*]]} ; [ DW_TAG_member ]
-// CHECK: [[ARRAY_TYPE]] = metadata !{i32 {{.*}}, null, metadata !"", null, i32 0, i64 0, i64 32, i32 0, i32 0, metadata [[BASE_TYPE:.*]], metadata [[ELEM_TYPE:.*]], i32 0, i32 0} ; [ DW_TAG_array_type ]
-// CHECK: [[BASE_TYPE]] = metadata !{i32 {{.*}}, null, metadata !"int", null, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
+// CHECK: metadata [[ARRAY_TYPE:![0-9]*]]} ; [ DW_TAG_member ] [x]
+// CHECK: metadata [[ELEM_TYPE:![0-9]*]], i32 0, i32 0} ; [ DW_TAG_array_type ] [line 0, size 0, align 32, offset 0] [from int]
// CHECK: [[ELEM_TYPE]] = metadata !{metadata [[SUBRANGE:.*]]}
// CHECK: [[SUBRANGE]] = metadata !{i32 786465, i64 0, i64 -1} ; [ DW_TAG_subrange_type ] [unbounded]
OpenPOWER on IntegriCloud