summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/debug-info-vla.c
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-19 17:51:58 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-19 17:51:58 +0000
commita99f49a59e46a202e93de620c5f0c8164a1f834e (patch)
treeb5b7fa8177d98b74dceb21adf285cd75932f64b3 /test/CodeGen/debug-info-vla.c
parentba294eb8f9baa1ff747e356e165a682a03a4d4ec (diff)
Migrate all uses of DIVariable's FlagIndirectVariable to use a DIExpression
with a DW_OP_deref instead. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/debug-info-vla.c')
-rw-r--r--test/CodeGen/debug-info-vla.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CodeGen/debug-info-vla.c b/test/CodeGen/debug-info-vla.c
index ac45dd0a76..7d321cf05f 100644
--- a/test/CodeGen/debug-info-vla.c
+++ b/test/CodeGen/debug-info-vla.c
@@ -2,7 +2,10 @@
void testVLAwithSize(int s)
{
-// CHECK: !"0x100\00vla\00[[@LINE+1]]\008192", {{.*}}, {{.*}}, {{.*}}} ; [ DW_TAG_auto_variable ] [vla] [line [[@LINE+1]]]
+// CHECK: dbg.declare
+// CHECK: dbg.declare({{.*}}, metadata ![[VAR:.*]], metadata ![[EXPR:.*]])
+// CHECK: ![[VAR]] = {{.*}} ; [ DW_TAG_auto_variable ] [vla] [line [[@LINE+2]]]
+// CHECK: ![[EXPR]] = {{.*}} ; [ DW_TAG_expression ] [DW_OP_deref]
int vla[s];
int i;
for (i = 0; i < s; i++) {