diff options
| author | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
|---|---|---|
| committer | Stephen Lin <stephenwlin@gmail.com> | 2013-08-15 06:47:53 +0000 |
| commit | 93ab6bf534fb6c26563c00f28a8fc5581bb71dfd (patch) | |
| tree | 938e985e9673d1b0d289e8ed751943edc097da1d /test/CodeGenCXX/exceptions.cpp | |
| parent | 233fbe1f56183878167a56be53425a6dd25ba334 (diff) | |
| download | clang-93ab6bf534fb6c26563c00f28a8fc5581bb71dfd.tar.gz clang-93ab6bf534fb6c26563c00f28a8fc5581bb71dfd.tar.bz2 clang-93ab6bf534fb6c26563c00f28a8fc5581bb71dfd.tar.xz | |
CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/exceptions.cpp')
| -rw-r--r-- | test/CodeGenCXX/exceptions.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGenCXX/exceptions.cpp b/test/CodeGenCXX/exceptions.cpp index f6f5079791..d37e6109db 100644 --- a/test/CodeGenCXX/exceptions.cpp +++ b/test/CodeGenCXX/exceptions.cpp @@ -269,7 +269,7 @@ namespace test5 { void foo(); - // CHECK: define void @_ZN5test54testEv() + // CHECK-LABEL: define void @_ZN5test54testEv() // CHECK: [[EXNSLOT:%.*]] = alloca i8* // CHECK-NEXT: [[SELECTORSLOT:%.*]] = alloca i32 // CHECK-NEXT: [[A:%.*]] = alloca [[A_T:%.*]], align 1 @@ -403,7 +403,7 @@ namespace test8 { void test() { throw makeA(); } - // CHECK: define void @_ZN5test84testEv + // CHECK-LABEL: define void @_ZN5test84testEv } // Make sure we generate the correct code for the delete[] call which @@ -432,14 +432,14 @@ namespace test10 { struct A { ~A(); }; A::~A() try { cleanup(); } catch (...) { return; } - // CHECK: define void @_ZN6test101AD1Ev( + // CHECK-LABEL: define void @_ZN6test101AD1Ev( // CHECK: invoke void @_ZN6test107cleanupEv() // CHECK-NOT: rethrow // CHECK: ret void struct B { ~B(); }; B::~B() try { cleanup(); } catch (...) {} - // CHECK: define void @_ZN6test101BD1Ev( + // CHECK-LABEL: define void @_ZN6test101BD1Ev( // CHECK: invoke void @_ZN6test107cleanupEv() // CHECK: call i8* @__cxa_begin_catch // CHECK-NEXT: invoke void @__cxa_rethrow() @@ -447,7 +447,7 @@ namespace test10 { struct C { ~C(); }; C::~C() try { cleanup(); } catch (...) { if (suppress) return; } - // CHECK: define void @_ZN6test101CD1Ev( + // CHECK-LABEL: define void @_ZN6test101CD1Ev( // CHECK: invoke void @_ZN6test107cleanupEv() // CHECK: call i8* @__cxa_begin_catch // CHECK-NEXT: load i8* @_ZN6test108suppressE, align 1 @@ -477,7 +477,7 @@ namespace test11 { C::C() { throw 0; } - // CHECK: define void @_ZN6test111CC2Ev( + // CHECK-LABEL: define void @_ZN6test111CC2Ev( // CHECK: [[THIS:%.*]] = load [[C:%.*]]** {{%.*}} // Construct single. // CHECK-NEXT: [[SINGLE:%.*]] = getelementptr inbounds [[C]]* [[THIS]], i32 0, i32 0 |
