blob: fbd22a9063c15e20f1163a501b6ba1fb7e3bbe75 [file] [log] [blame]
/* Test that we don't ICE when issuing a -Wselector warning. */
/* { dg-options "-Wselector" } */
/* { dg-do compile } */
#include <objc/Object.h>
__attribute__((objc_root_class)) @interface Foo
@end
@implementation Foo
-(void) foo
{
SEL a;
a = @selector(b1ar);
}
@end
/* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */