2018-03-20 03:34:39 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-unknown-windows-msvc -fobjc-runtime=ios-6.0 -fobjc-arc \
|
|
|
|
// RUN: -fexceptions -fcxx-exceptions -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
|
|
|
id f();
|
|
|
|
void g() {
|
|
|
|
try {
|
|
|
|
f();
|
|
|
|
} catch (...) {
|
|
|
|
f();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-05 03:50:14 +08:00
|
|
|
// CHECK: call i8* @"?f@@YAPAUobjc_object@@XZ"() [ "funclet"(token %1) ]
|
2018-03-20 03:34:39 +08:00
|
|
|
// CHECK-NEXT: call void asm sideeffect "movl{{.*}}%ebp, %ebp{{.*}}", ""() [ "funclet"(token %1) ]
|
|
|
|
|
|
|
|
// The corresponding f() call was invoked from the entry basic block.
|
|
|
|
// CHECK: call void asm sideeffect "movl{{.*}}%ebp, %ebp{{.*}}", ""(){{$}}
|