diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-09-17 10:14:25 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-09-17 10:14:25 +0000 |
commit | 46936bf011ab06dd701ed45eb4967e0c2dfe49e5 (patch) | |
tree | ec89b9a82ba90e3d18afd8fac3dd6ad1d44f3784 /gcc | |
parent | c3224d6f70eefb9ca469de8385bc565b1298dbb5 (diff) | |
download | gcc-46936bf011ab06dd701ed45eb4967e0c2dfe49e5.zip gcc-46936bf011ab06dd701ed45eb4967e0c2dfe49e5.tar.gz gcc-46936bf011ab06dd701ed45eb4967e0c2dfe49e5.tar.bz2 |
In gcc/testsuite/:
* objc/execute/exceptions/throw-nil.m: Run the test only with the
GNU runtime.
From-SVN: r164359
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/objc/execute/exceptions/throw-nil.m | 14 |
2 files changed, 19 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b4bfbe4..43ea053 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 3092d14..cd9a797 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 |