blob: e73868a92d6c1596d734c6c46be50dc3202e0c81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* Test that we don't ICE when issuing a -Wselector warning. */
/* APPLE LOCAL Objective-C */
/* { dg-options "-Wselector" } */
/* { dg-do compile } */
#include <objc/Object.h>
@interface Foo
@end
@implementation Foo
-(void) foo
{
SEL a;
/* APPLE LOCAL Objective-C */
a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */
}
/* APPLE LOCAL Objective-C */
@end
|