diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/exceptions-seh.c | 8 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/exceptions-seh.cpp | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/clang/test/CodeGen/exceptions-seh.c b/clang/test/CodeGen/exceptions-seh.c index 98b9de5d59d..ebe97bedd23 100644 --- a/clang/test/CodeGen/exceptions-seh.c +++ b/clang/test/CodeGen/exceptions-seh.c @@ -21,7 +21,7 @@ int safe_div(int numerator, int denominator, int *res) { return success; } // CHECK-LABEL: define i32 @safe_div(i32 %numerator, i32 %denominator, i32* %res) -// CHECK: invoke void @try_body(i32 %{{.*}}, i32 %{{.*}}, i32* %{{.*}}) +// CHECK: invoke void @try_body(i32 %{{.*}}, i32 %{{.*}}, i32* %{{.*}}) #[[NOINLINE:[0-9]+]] // CHECK: to label %{{.*}} unwind label %[[lpad:[^ ]*]] // // CHECK: [[lpad]] @@ -51,7 +51,7 @@ int filter_expr_capture(void) { // CHECK-LABEL: define i32 @filter_expr_capture() // FIXMECHECK: %[[captures]] = call i8* @llvm.frameallocate(i32 4) // CHECK: store i32 42, i32* %[[r:[^ ,]*]] -// CHECK: invoke void @j() +// CHECK: invoke void @j() #[[NOINLINE]] // // CHECK: landingpad // CHECK-NEXT: catch i8* bitcast (i32 (i8*, i8*)* @"\01?filt$0@0@filter_expr_capture@@" to i8*) @@ -81,7 +81,7 @@ int nested_try(void) { } // CHECK-LABEL: define i32 @nested_try() // CHECK: store i32 42, i32* %[[r:[^ ,]*]] -// CHECK: invoke void @j() +// CHECK: invoke void @j() #[[NOINLINE]] // CHECK: to label %[[cont:[^ ]*]] unwind label %[[lpad:[^ ]*]] // // CHECK: [[cont]] @@ -179,3 +179,5 @@ int except_return(void) { // CHECK: [[retbb]] // CHECK: %[[r:[^ ]*]] = load i32* %[[rv]] // CHECK: ret i32 %[[r]] + +// CHECK: attributes #[[NOINLINE]] = { {{.*noinline.*}} } diff --git a/clang/test/CodeGenCXX/exceptions-seh.cpp b/clang/test/CodeGenCXX/exceptions-seh.cpp index 38d176b829f..5f93cb1be3f 100644 --- a/clang/test/CodeGenCXX/exceptions-seh.cpp +++ b/clang/test/CodeGenCXX/exceptions-seh.cpp @@ -58,7 +58,7 @@ extern "C" void use_seh() { // Make sure we use __C_specific_handler for SEH. // CHECK-LABEL: define void @use_seh() -// CHECK: invoke void @might_throw() +// CHECK: invoke void @might_throw() #[[NOINLINE:[0-9]+]] // CHECK: to label %[[cont:[^ ]*]] unwind label %[[lpad:[^ ]*]] // // CHECK: [[cont]] @@ -92,4 +92,7 @@ void use_seh_in_lambda() { // NOCXX: ret void // CHECK-LABEL: define internal void @"\01??R<lambda_0>@?use_seh_in_lambda@@YAXXZ@QEBAXXZ"(%class.anon* %this) +// CHECK: invoke void @might_throw() #[[NOINLINE]] // CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__C_specific_handler to i8*) + +// CHECK: attributes #[[NOINLINE]] = { {{.*noinline.*}} } |