Daily bump.
[official-gcc.git] / gcc / testsuite / objc.dg / selector-3.m
blob94838cd3803bf126265a434943cdee95fff35025
1 /* Test warning for non-existent selectors.  */
2 /* This is the "-fgnu-runtime" variant of objc.dg/selector-1.m.  */
3 /* { dg-options "-Wselector" } */
4 /* { dg-do compile } */
5 /* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
6 /* { dg-additional-options "-Wno-objc-root-class" } */
8 typedef struct objc_object { struct objc_class *class_pointer; } *id;
9 typedef const struct objc_selector    *SEL;
11 @interface Foo
12 - (void) foo;
13 - (void) bar;
14 @end
16 @implementation Foo
17 - (void) bar
21 - (void) foo
23   SEL a,b,c;
24   a = @selector(b1ar);
25   b = @selector(bar);
27 @end
29 /* FIXME: The error message should be on the correct line.  */
30 /* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */