summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/try-catch-11.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc.dg/try-catch-11.m')
-rw-r--r--gcc/testsuite/objc.dg/try-catch-11.m42
1 files changed, 0 insertions, 42 deletions
diff --git a/gcc/testsuite/objc.dg/try-catch-11.m b/gcc/testsuite/objc.dg/try-catch-11.m
deleted file mode 100644
index 745deca7c1d..00000000000
--- a/gcc/testsuite/objc.dg/try-catch-11.m
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Check that throwing an exception from a -forward:: works. */
-/* Developed by Marcin Koziej <creep@desk.pl>. */
-
-/* { dg-do run } */
-/* { dg-options "-fobjc-exceptions -w" } */
-
-#import <objc/Object.h>
-#import <objc/objc-api.h>
-#include <stdlib.h>
-
-static int i;
-
-@interface Thrower : Object
-- forward: (SEL) s : (void*) a;
-@end
-
-@implementation Thrower
-- forward: (SEL) s : (void*) a
-{
- i++;
- @throw [Object new];
-}
-@end
-int
-main()
-{
- id t = [Thrower new];
- @try
- {
- [t doesnotexist];
- }
- @catch (id error)
- {
- i++;
- [error free];
- }
-
- if (i != 2)
- abort ();
-
- return 0;
-} \ No newline at end of file