aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-07-17 21:52:07 +0000
committerEric Christopher <echristo@apple.com>2012-07-17 21:52:07 +0000
commit75d4b1e34b873e368977e09d8a9681988de1a1a9 (patch)
tree905d56cb49f7c347cf6d418ebe11a335d3447492
parent75c5754260b4a3a0ff7f6437c850be9f95cad836 (diff)
Robustify test in the face of no assertions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160399 91177308-0d34-0410-b5e6-96231b3b80d8
-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 9da6aa87dd..893b021360 100644
--- a/test/CodeGen/debug-info-line2.c
+++ b/test/CodeGen/debug-info-line2.c
@@ -9,8 +9,9 @@ int foo(int i) {
}
else
{
-//CHECK: store i32 %add
-//CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg
+ // 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;