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
This commit is contained in:
Nicola Pero 2010-10-17 10:11:23 +00:00 committed by Nicola Pero
parent b78245235e
commit 368be4c735
2 changed files with 29 additions and 0 deletions

View File

@ -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

View File

@ -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;
}