hanchenye-llvm-project/clang/test/CodeGenObjC/arc-with-atthrow.m

16 lines
371 B
Mathematica
Raw Normal View History

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fobjc-nonfragile-abi -fobjc-exceptions -o - %s | FileCheck %s
// pr10411
@interface NSException
+ (id)exception;
@end
void test()
{
@throw [NSException exception];
}
// CHECK: objc_retainAutoreleasedReturnValue
// CHECK: call void @objc_release
// CHECK: call void @objc_exception_throw