diff options
author | John McCall <rjmccall@apple.com> | 2010-10-16 08:21:07 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-16 08:21:07 +0000 |
commit | 17afe45a8725d6ed0ddacd13663b959b74d3be07 (patch) | |
tree | 473328b8a637f994080d0b00805db9d5fd69fea2 /clang/test | |
parent | c9739e30c680e06067c35d9b863f3653bacaeab5 (diff) | |
download | bcm5719-llvm-17afe45a8725d6ed0ddacd13663b959b74d3be07.tar.gz bcm5719-llvm-17afe45a8725d6ed0ddacd13663b959b74d3be07.zip |
objc_exception_rethrow does not take an exception argument.
rdar://problem/8535238
llvm-svn: 116663
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGenObjC/exceptions-nonfragile.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/exceptions-nonfragile.m b/clang/test/CodeGenObjC/exceptions-nonfragile.m new file mode 100644 index 00000000000..41cda2c0a9c --- /dev/null +++ b/clang/test/CodeGenObjC/exceptions-nonfragile.m @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-nonfragile-abi -fexceptions -O2 -o - %s | FileCheck %s + +// rdar://problem/8535238 +// CHECK: declare void @objc_exception_rethrow() + +void protos() { + extern void foo(); + @try { + foo(); + } @catch (id e) { + @throw; + } +} |