Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / obj-c++.dg / selector-2.mm
blob09fbc252836f672f688dde625e556447ea4e54c1
1 /* Test that we don't ICE when issuing a -Wselector warning.  */
2 /* { dg-options "-Wselector" } */
3 /* { dg-do compile } */
5 #include <objc/Object.h>
7 @interface Foo
8 @end
9 @implementation Foo
10 -(void) foo
12   SEL a;
13   a = @selector(b1ar);
15 @end
16 /* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */