aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/condition.cpp
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-08-15 06:47:53 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-08-15 06:47:53 +0000
commit4362261b0093730e46ffcad910e8b465cf0bb1cb (patch)
treeb05fa6d247505d0ab46b16619f702532e189f698 /clang/test/CodeGenCXX/condition.cpp
parent83e042a21b5392882ccc020baa9ade52851b5903 (diff)
downloadllvm-4362261b0093730e46ffcad910e8b465cf0bb1cb.zip
llvm-4362261b0093730e46ffcad910e8b465cf0bb1cb.tar.gz
llvm-4362261b0093730e46ffcad910e8b465cf0bb1cb.tar.bz2
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
llvm-svn: 188447
Diffstat (limited to 'clang/test/CodeGenCXX/condition.cpp')
-rw-r--r--clang/test/CodeGenCXX/condition.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGenCXX/condition.cpp b/clang/test/CodeGenCXX/condition.cpp
index cc2eaf5..452f1c3 100644
--- a/clang/test/CodeGenCXX/condition.cpp
+++ b/clang/test/CodeGenCXX/condition.cpp
@@ -26,7 +26,7 @@ struct Y {
X getX();
-// CHECK: define void @_Z11if_destructi(
+// CHECK-LABEL: define void @_Z11if_destructi(
void if_destruct(int z) {
// Verify that the condition variable is destroyed at the end of the
// "if" statement.
@@ -95,7 +95,7 @@ void switch_destruct(int z) {
int foo();
-// CHECK: define void @_Z14while_destructi
+// CHECK-LABEL: define void @_Z14while_destructi
void while_destruct(int z) {
// CHECK: [[Z:%.*]] = alloca i32
// CHECK: [[CLEANUPDEST:%.*]] = alloca i32
@@ -135,7 +135,7 @@ void while_destruct(int z) {
// CHECK: ret
}
-// CHECK: define void @_Z12for_destructi(
+// CHECK-LABEL: define void @_Z12for_destructi(
void for_destruct(int z) {
// CHECK: [[Z:%.*]] = alloca i32
// CHECK: [[CLEANUPDEST:%.*]] = alloca i32
@@ -224,7 +224,7 @@ void for_destruct(int z) {
}
void do_destruct(int z) {
- // CHECK: define void @_Z11do_destruct
+ // CHECK-LABEL: define void @_Z11do_destruct
do {
// CHECK: store i32 77
z = 77;