blob: c41d142a40851be537f8b2a270928cb0662dca37 [file] [log] [blame]
Fariborz Jahanian56242ba2012-06-21 18:43:08 +00001// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s
Fariborz Jahanianba9e16f2012-05-18 00:19:25 +00002// 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'}}