Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / objc.dg / selector-1.m
blobf0781b68c63ff91365a52ec8429dd3bb9692b6d7
1 /* Test warning for non existing selectors.  */
2 /* Contributed by Devang Patel <dpatel@apple.com>.  */
3 /* { dg-options "-Wselector" } */
4 /* { dg-do compile } */
5 /* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
7 typedef struct objc_object { struct objc_class *class_pointer; } *id;
8 typedef struct objc_selector    *SEL;
10 @interface Foo
11 - (void) foo;
12 - (void) bar;
13 @end
15 @implementation Foo
16 - (void) bar
20 - (void) foo
22   SEL a,b,c;
23   a = @selector(b1ar); /* { dg-warning "creating selector for nonexistent method .b1ar." } */
24   b = @selector(bar);
26 @end