diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-10-17 10:11:23 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-10-17 10:11:23 +0000 |
commit | 368be4c7351ae32340d6ef1fbf330467792c1432 (patch) | |
tree | e168f0baffd74e8d55d1de7f30470af57711cfab /gcc/testsuite | |
parent | b78245235e55d4b8c3b155e5adeaad7e0c419531 (diff) | |
download | gcc-368be4c7351ae32340d6ef1fbf330467792c1432.zip gcc-368be4c7351ae32340d6ef1fbf330467792c1432.tar.gz gcc-368be4c7351ae32340d6ef1fbf330467792c1432.tar.bz2 |
In gcc/testsuite/: 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/18255
* objc.dg/pr18255.m: New.
From-SVN: r165579
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/objc.dg/pr18255.m | 24 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c6460fd..b236d20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> + + PR objc/18255 + * objc.dg/pr18255.m: New. + 2010-10-16 Jan Hubicka <jh@suse.cz> PR middle-end/44206 diff --git a/gcc/testsuite/objc.dg/pr18255.m b/gcc/testsuite/objc.dg/pr18255.m new file mode 100644 index 0000000..c9bb87c --- /dev/null +++ b/gcc/testsuite/objc.dg/pr18255.m @@ -0,0 +1,24 @@ +/* This is a test for a GNU Objective-C Runtime library bug. */ +/* { dg-do run } */ +/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */ + +#include <objc/Protocol.h> +#include <stdlib.h> + +@protocol a +- aMethod; +@end + + +@protocol b <a> +- bMethod; +@end + + +int main (int argc, char **argv) +{ + if ([@protocol(b) descriptionForInstanceMethod: @selector(aMethod)] == NULL) + abort (); + + return 0; +} |