1 // RUN: %clang_cc1 -fsyntax-only -Wundeclared-selector -verify -Wno-objc-root-class %s
3 typedef struct objc_selector *SEL;
14 @implementation MyClass
20 SEL d = @selector(methodD); /* Ok */
21 SEL e = @selector(methodE);
26 SEL e = @selector(methodE); /* Ok */
31 SEL e = @selector(methodE); /* Ok */
38 SEL a = @selector(methodA); /* Ok */
39 SEL b = @selector(methodB); /* Ok */
40 SEL c = @selector(methodC); // expected-warning {{undeclared selector 'methodC'}}
41 SEL d = @selector(methodD); /* Ok */
42 SEL e = @selector(methodE); /* Ok */