diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-05-18 00:19:25 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-05-18 00:19:25 +0000 |
commit | ba9e16f73caa9351dd0340405992b1d1a38234ef (patch) | |
tree | f9a9e553f151af14a0cb48092beb3a89fc6a7e5a | |
parent | 0a4a23a6afd6db4bdcedd4e9f39d8baf4a446f15 (diff) |
Another test for r157025 <rdar://problem/11460990>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157034 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaObjC/mismatched-undefined-method.m | 13 |
1 files changed, 13 insertions, 0 deletions
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'}} |