From: John McCall Date: Thu, 22 Apr 2010 03:27:09 +0000 (+0000) Subject: Neuter this testcase a little. The way LLVM writes labels for anonymous blocks X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e2f128354f631d44b3f6dbcd4cee1cc04bdf7b1;p=clang Neuter this testcase a little. The way LLVM writes labels for anonymous blocks makes it impossible to check labels. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102048 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/eh.cpp b/test/CodeGenCXX/eh.cpp index a33befd264..f2629d19d9 100644 --- a/test/CodeGenCXX/eh.cpp +++ b/test/CodeGenCXX/eh.cpp @@ -45,8 +45,8 @@ void test2() { // CHECK-NEXT: [[EXN:%.*]] = bitcast i8* [[EXNOBJ]] to [[DSTAR:%[^*]*\*]] // CHECK-NEXT: invoke void @_ZN7test2_DC1ERKS_([[DSTAR]] [[EXN]], [[DSTAR]] @d2) // CHECK-NEXT: to label %[[CONT:.*]] unwind label %{{.*}} -// CHECK: [[CONT]]: -// CHECK-NEXT: store i1 false, i1* [[FREEVAR]] +// : [[CONT]]: (can't check this in Release-Asserts builds) +// CHECK: store i1 false, i1* [[FREEVAR]] // CHECK-NEXT: call void @__cxa_throw(i8* [[EXNOBJ]], i8* bitcast (%{{.*}}* @_ZTI7test2_D to i8*), i8* null) noreturn // CHECK-NEXT: unreachable @@ -101,6 +101,6 @@ namespace test5 { // CHECK-NEXT: invoke void @_ZN5test51AC1Ev([[A]]* [[EXNCAST]]) // CHECK: invoke void @__cxa_throw(i8* [[EXNOBJ]], i8* bitcast ({{%.*}}* @_ZTIN5test51AE to i8*), i8* bitcast (void ([[A]]*)* @_ZN5test51AD1Ev to i8*)) noreturn // CHECK-NEXT: to label {{%.*}} unwind label %[[HANDLER:[^ ]*]] -// CHECK: [[HANDLER]]: +// : [[HANDLER]]: (can't check this in Release-Asserts builds) // CHECK: {{%.*}} = call i32 @llvm.eh.typeid.for(i8* bitcast ({{%.*}}* @_ZTIN5test51AE to i8*)) }