You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
604 B

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fexceptions -fobjc-exceptions -o - %s | FileCheck %s
// rdar://problem/8535238
// CHECK: declare void @objc_exception_rethrow()
void protos() {
extern void foo();
@try {
foo();
} @catch (id e) {
@throw;
}
}
void throwing() {
@throw(@"error!");
}
// rdar://problem/9431547
void die(void) __attribute__((nothrow, noreturn));
void test2(void) {
@try {
die();
} @finally {
extern void test2_helper(void);
test2_helper();
}
// CHECK-LABEL: define void @test2()
// CHECK-NOT: call void @test2_helper()
}