diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-10-16 04:08:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-10-16 04:08:16 +0000 |
commit | 90bb5c231501ffa6d293677346e786afcf080ccf (patch) | |
tree | c07b7dce361d3c77d2f19d644179eb3482432548 /clang/test | |
parent | 44436302fb9687c6f9662be0f40b2f08f46c2b12 (diff) | |
download | bcm5719-llvm-90bb5c231501ffa6d293677346e786afcf080ccf.tar.gz bcm5719-llvm-90bb5c231501ffa6d293677346e786afcf080ccf.zip |
IRgen/Obj-C/NeXT: Fix the IR signature for objc_exception_rethrow, so we don't
generate unnecessary %al clear on x86_64.
llvm-svn: 116656
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGenObjC/method-signatures.m | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/method-signatures.m b/clang/test/CodeGenObjC/method-signatures.m new file mode 100644 index 00000000000..b03570950a2 --- /dev/null +++ b/clang/test/CodeGenObjC/method-signatures.m @@ -0,0 +1,14 @@ +// Check method signatures for synthesized runtime functions. +// +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 \ +// RUN: -fexceptions -fobjc-nonfragile-abi2 -emit-llvm -o %t %s +// RUN: FileCheck < %t %s + +// CHECK: declare void @objc_exception_rethrow() +void f1(void); +void f0() { + @try { + f1(); + } @finally { + } +} |