In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com>
[gcc.git] / gcc / testsuite / obj-c++.dg / selector-2.mm
1 /* Test that we don't ICE when issuing a -Wselector warning. */
2 /* { dg-options "-Wselector" } */
3 /* { dg-do compile } */
4
5 #include "../objc-obj-c++-shared/Object1.h"
6
7 @interface Foo
8 @end
9 @implementation Foo
10 -(void) foo
11 {
12 SEL a;
13 a = @selector(b1ar);
14 }
15 @end
16 /* { dg-warning "creating selector for nonexistent method .b1ar." "" { target *-*-* } 0 } */
17