1 // RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s
4 typedef unsigned int CGDirectDisplayID;
6 @interface NSObject @end
8 @interface BrightnessAssistant : NSObject {}
9 - (void)BrightnessAssistantUnregisterForNotifications:(void*) observer; // expected-note {{previous definition is here}}
11 @implementation BrightnessAssistant // expected-note {{implementation started here}}
12 - (void)BrightnessAssistantUnregisterForNotifications:(CGDirectDisplayID) displayID, void* observer // expected-warning {{conflicting parameter types in implementation of 'BrightnessAssistantUnregisterForNotifications:': 'void *' vs 'CGDirectDisplayID'}}
13 @end // expected-error {{expected method body}} // expected-error {{missing '@end'}}