Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjC / mismatched-undefined-method.m
blobcf0915dde39b428947f9b1d26a4b5e952cb4212e
1 // RUN: %clang_cc1  -fsyntax-only -Wno-deprecated-declarations -verify %s
3 typedef unsigned int CGDirectDisplayID;
5 @interface NSObject @end
7 @interface BrightnessAssistant : NSObject {}
8 - (void)BrightnessAssistantUnregisterForNotifications:(void*) observer; // expected-note {{previous definition is here}}
9 @end
10 @implementation BrightnessAssistant // expected-note {{implementation started here}}
11 - (void)BrightnessAssistantUnregisterForNotifications:(CGDirectDisplayID) displayID, void* observer // expected-warning {{conflicting parameter types in implementation of 'BrightnessAssistantUnregisterForNotifications:': 'void *' vs 'CGDirectDisplayID'}}
12 @end // expected-error {{expected method body}} // expected-error {{missing '@end'}}