xref: /llvm-project/clang/test/SemaObjC/mismatched-undefined-method.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1  -fsyntax-only -Wno-deprecated-declarations -verify %s
2
3typedef unsigned int CGDirectDisplayID;
4
5@interface NSObject @end
6
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'}}
13