blob: c9bb87c67f93ef76b193593a14e9de601a7771ad [file] [log] [blame]
/* 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;
}