1 /* Test for -Wundeclared-selector. */
2 /* Author: Nicola Pero <nicola@brainstorm.co.uk>. */
3 /* { dg-do compile } */
4 /* { dg-options "-Wundeclared-selector" } */
17 @implementation MyClass
23 SEL d = @selector(methodD); /* Ok */
24 SEL e = @selector(methodE); /* { dg-warning "undeclared selector" } */
29 SEL e = @selector(methodE); /* Ok */
34 SEL e = @selector(methodE); /* Ok */
41 SEL a = @selector(methodA); /* Ok */
42 SEL b = @selector(methodB); /* Ok */
43 SEL c = @selector(methodC); /* { dg-warning "undeclared selector" } */
44 SEL d = @selector(methodD); /* Ok */
45 SEL e = @selector(methodE); /* Ok */