Debian Codegraph @

gcc/testsuite/objc.dg/selector-2.m

raw
1 /* Test that we don't ICE when issuing a -Wselector warning. */
2 /* { dg-options "-Wselector" } */
3 /* { dg-do compile } */
4 /* { dg-additional-options "-Wno-objc-root-class" } */
5
6 #include <objc/objc.h>
7
8 @interface Foo
9 @end
10 @implementation Foo
11 -(void) foo
12 {
13 SEL a;
14 a = @selector(b1ar);
15 }
16 @end
17 /* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */