diff options
Diffstat (limited to 'gcc/testsuite/objc/execute/exceptions/handler-1.m')
-rw-r--r-- | gcc/testsuite/objc/execute/exceptions/handler-1.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/objc/execute/exceptions/handler-1.m b/gcc/testsuite/objc/execute/exceptions/handler-1.m index 9cd8df1..684a831 100644 --- a/gcc/testsuite/objc/execute/exceptions/handler-1.m +++ b/gcc/testsuite/objc/execute/exceptions/handler-1.m @@ -1,6 +1,16 @@ /* Test custom exception handlers */ /* Author: David Ayers */ +#ifdef __NEXT_RUNTIME__ +/* This test only runs for the GNU runtime. */ + +int main(void) +{ + return 0; +} + +#else + #include <objc/objc-api.h> #include <objc/Object.h> #include <stdio.h> @@ -36,3 +46,6 @@ main(int argc, char *argv[]) abort(); return 0; } + + +#endif |