[committed][PR rtl-optimization/116199] Fix latent bug in reload's SUBREG handling
[official-gcc.git] / gcc / testsuite / objc.dg / selector-2.m
blob5042104ed3eddecd523dfc27d49aa8fd58360183
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" } */
6 #include <objc/objc.h>
8 @interface Foo
9 @end
10 @implementation Foo
11 -(void) foo
13   SEL a;
14   a = @selector(b1ar);
16 @end
17 /* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */