From: Fariborz Jahanian Date: Fri, 18 May 2012 00:19:25 +0000 (+0000) Subject: Another test for r157025 . X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba9e16f73caa9351dd0340405992b1d1a38234ef;p=clang Another test for r157025 . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157034 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaObjC/mismatched-undefined-method.m b/test/SemaObjC/mismatched-undefined-method.m new file mode 100644 index 0000000000..936e892020 --- /dev/null +++ b/test/SemaObjC/mismatched-undefined-method.m @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -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'}}