mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 05:10:25 +08:00
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:
parent
b78245235e
commit
368be4c735
@ -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
|
||||
|
24
gcc/testsuite/objc.dg/pr18255.m
Normal file
24
gcc/testsuite/objc.dg/pr18255.m
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user