From ba9e16f73caa9351dd0340405992b1d1a38234ef Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Fri, 18 May 2012 00:19:25 +0000 Subject: [PATCH] Another test for r157025 . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157034 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaObjC/mismatched-undefined-method.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/SemaObjC/mismatched-undefined-method.m 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'}} -- 2.50.1