Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / selector-4.m
blob3a574a1ed2df134962c82a84c2655ad1510f8347
1 // RUN: %clang_cc1 -Wselector -x objective-c %s -include %s -verify
2 // expected-no-diagnostics
4 #ifndef INCLUDED
5 #define INCLUDED
7 #pragma clang system_header
9 @interface NSObject @end
10 @interface NSString @end
12 @interface NSString (NSStringExtensionMethods)
13 - (void)compare:(NSString *)string;
14 @end
16 @interface MyObject : NSObject
17 @end
19 #else
20 int main(void) {
21     (void)@selector(compare:);
24 @implementation MyObject
26 @end
27 #endif