2010-11-11 Jakub Jelinek <jakub@redhat.com>
[official-gcc.git] / gcc / testsuite / objc.dg / pr18255.m
blobc9bb87c67f93ef76b193593a14e9de601a7771ad
1 /* This is a test for a GNU Objective-C Runtime library bug.  */
2 /* { dg-do run } */
3 /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
5 #include <objc/Protocol.h>
6 #include <stdlib.h>
8 @protocol a
9 - aMethod;
10 @end
13 @protocol b <a>
14 - bMethod;
15 @end
18 int main (int argc, char **argv)
20   if ([@protocol(b) descriptionForInstanceMethod: @selector(aMethod)] == NULL)
21     abort ();
23   return 0;