aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendObjC
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-10-17 23:14:56 +0000
committerBill Wendling <isanbard@gmail.com>2007-10-17 23:14:56 +0000
commit0fbee667a3d224bd1efbd9e23beeebd8af58e5e5 (patch)
treef8aa205899ec91e283126e63414263f3e427b7cc /test/FrontendObjC
parent1357bbf499c502a9f4812f0a85e6df41d5fc8ead (diff)
downloadexternal_llvm-0fbee667a3d224bd1efbd9e23beeebd8af58e5e5.zip
external_llvm-0fbee667a3d224bd1efbd9e23beeebd8af58e5e5.tar.gz
external_llvm-0fbee667a3d224bd1efbd9e23beeebd8af58e5e5.tar.bz2
Test to make sure we don't generate unwind info for non-64-bit Objective-C.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendObjC')
-rw-r--r--test/FrontendObjC/2007-10-17-SJLJExceptions.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/FrontendObjC/2007-10-17-SJLJExceptions.m b/test/FrontendObjC/2007-10-17-SJLJExceptions.m
new file mode 100644
index 0000000..9d74d89
--- /dev/null
+++ b/test/FrontendObjC/2007-10-17-SJLJExceptions.m
@@ -0,0 +1,18 @@
+// RUN: %llvmgcc -x objective-c -arch i386 -pipe -std=gnu99 -O2 -fexceptions -S -o - t.m | not grep Unwind_Resume
+
+#import <Foundation/Foundation.h>
+
+static NSMutableArray *anArray = nil;
+
+CFArrayRef bork(void) {
+ CFArrayRef result = NULL;
+ NSAutoreleasePool *pool = [NSAutoreleasePool new];
+ @try {
+ result = CFRetain(anArray);
+ } @catch(id any) {
+ NSLog(@"Swallowed exception %@", any);
+ }
+
+ [pool release];
+ return result;
+}