RISC-V: Move RVV V_REGS liveness computation into analyze_loop_vinfo
[official-gcc.git] / gcc / testsuite / obj-c++.dg / selector-3.mm
blob0c9805626ed5b607de40c199d989ac680042a457
1 /* Test warning for non-existent selectors.  */
2 /* This is the "-fgnu-runtime" variant of objc.dg/selector-1.m.  */
3 /* { dg-options "-Wselector -fgnu-runtime" } */
4 /* { dg-do compile } */
5 // { dg-additional-options "-Wno-objc-root-class" }
7 typedef struct objc_object { struct objc_class *class_pointer; } *id;
8 typedef const 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);
24   b = @selector(bar);
26 @end
28 /* FIXME: The error message should be on the correct line.  */
29 /* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */