aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc/execute
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2009-04-20 22:23:55 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2009-04-20 15:23:55 -0700
commit158ec531feb66a73bff3fee42bc30cf874e76375 (patch)
tree57211987d9ebd851f527658343ddc57ec81d5eee /gcc/testsuite/objc/execute
parent47b0b4fa4f9a81b7714130698d4e0614bace9f24 (diff)
downloadgcc-158ec531feb66a73bff3fee42bc30cf874e76375.zip
gcc-158ec531feb66a73bff3fee42bc30cf874e76375.tar.gz
gcc-158ec531feb66a73bff3fee42bc30cf874e76375.tar.bz2
handler-1.m: For the NeXT runtime, just return 0.
2009-04-20 Andrew Pinski <andrew_pinski@playstation.sony.com> * objc/execute/exceptions/handler-1.m: For the NeXT runtime, just return 0. From-SVN: r146461
Diffstat (limited to 'gcc/testsuite/objc/execute')
-rw-r--r--gcc/testsuite/objc/execute/exceptions/handler-1.m13
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