2012-06-22 02:43:08 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s
|
2012-05-18 08:19:25 +08:00
|
|
|
// rdar://11460990
|
|
|
|
|
|
|
|
typedef unsigned int CGDirectDisplayID;
|
|
|
|
|
|
|
|
@interface NSObject @end
|
|
|
|
|
|
|
|
@interface BrightnessAssistant : NSObject {}
|
|
|
|
- (void)BrightnessAssistantUnregisterForNotifications:(void*) observer; // expected-note {{previous definition is here}}
|
|
|
|
@end
|
|
|
|
@implementation BrightnessAssistant // expected-note {{implementation started here}}
|
|
|
|
- (void)BrightnessAssistantUnregisterForNotifications:(CGDirectDisplayID) displayID, void* observer // expected-warning {{conflicting parameter types in implementation of 'BrightnessAssistantUnregisterForNotifications:': 'void *' vs 'CGDirectDisplayID'}}
|
|
|
|
@end // expected-error {{expected method body}} // expected-error {{missing '@end'}}
|