blob: c9bb87c67f93ef76b193593a14e9de601a7771ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}
|