summaryrefslogtreecommitdiff
path: root/test/CodeGen/debug-info-line2.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2012-08-15 20:02:54 +0000
committerDimitry Andric <dim@FreeBSD.org>2012-08-15 20:02:54 +0000
commit56d91b49b13fe55c918afbda19f6165b5fbff87a (patch)
tree9abb1a658a297776086f4e0dfa6ca533de02104e /test/CodeGen/debug-info-line2.c
parent41e20f564abdb05101d6b2b29c59459a966c22cc (diff)
Notes
Diffstat (limited to 'test/CodeGen/debug-info-line2.c')
-rw-r--r--test/CodeGen/debug-info-line2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/debug-info-line2.c b/test/CodeGen/debug-info-line2.c
index b5eba8a1a060c..893b021360fbb 100644
--- a/test/CodeGen/debug-info-line2.c
+++ b/test/CodeGen/debug-info-line2.c
@@ -6,11 +6,12 @@ int foo(int i) {
int j = 0;
if (i) {
j = bar();
-//CHECK: store i32
-//CHECK-NOT: br label %{{%[a-zA-Z0-9\.]+}}, !dbg
}
else
{
+ // CHECK: add nsw
+ // CHECK-NEXT: store i32 %{{[a-zA-Z0-9]+}}
+ // CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg
j = bar() + 2;
}
return j;