aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-17 10:14:25 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-17 10:14:25 +0000
commit8d8cd746333c9ea961688a8e8cee41911859fbc7 (patch)
treeec89b9a82ba90e3d18afd8fac3dd6ad1d44f3784
parent78d063c8ae871f5f818fdafcc583c29943e096f9 (diff)
In gcc/testsuite/:
* objc/execute/exceptions/throw-nil.m: Run the test only with the GNU runtime. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164359 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/objc/execute/exceptions/throw-nil.m14
2 files changed, 19 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b4bfbe4abec..43ea0539dd5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-17 Nicola Pero <nicola.pero@meta-innovation.com>
+
+ PR testsuite/45692
+ * objc/execute/exceptions/throw-nil.m: Run the test only with the
+ GNU runtime.
+
2010-09-17 Richard Guenther <rguenther@suse.de>
* gcc.dg/pr27898.c: Use -flto instead of -combine.
diff --git a/gcc/testsuite/objc/execute/exceptions/throw-nil.m b/gcc/testsuite/objc/execute/exceptions/throw-nil.m
index 3092d145170..cd9a797f5fd 100644
--- a/gcc/testsuite/objc/execute/exceptions/throw-nil.m
+++ b/gcc/testsuite/objc/execute/exceptions/throw-nil.m
@@ -1,8 +1,18 @@
#include <objc/objc.h>
#include <objc/Object.h>
+#ifdef __NEXT_RUNTIME__
+/* This test only runs for the GNU runtime. */
+
+int main(void)
+{
+ return 0;
+}
+
+#else
+
/* Test throwing a nil exception. A 'nil' exception can only be
- * caugth by a generic exception handler.
+ caugth by a generic exception handler.
*/
int main (void)
@@ -36,3 +46,5 @@ int main (void)
return 0;
}
+
+#endif