minix/external/bsd/llvm/dist/clang/test/SemaObjC/mismatched-undefined-method.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

13 lines
757 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -Wno-deprecated-declarations -verify %s
// 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'}}