1// RUN: %clang_cc1  -fsyntax-only -Wno-deprecated-declarations -verify %s
2// rdar://11460990
3
4typedef unsigned int CGDirectDisplayID;
5
6@interface NSObject @end
7
8@interface BrightnessAssistant : NSObject {}
9- (void)BrightnessAssistantUnregisterForNotifications:(void*) observer; // expected-note {{previous definition is here}}
10@end
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'}}
14