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 | b4bef15ae625f8886d48796d9cfa313385bc5be5 (patch) | |
| tree | 35474a4c0aabfd754ed60b7aa970e3f1655269ae | |
| parent | 5d5338fb81f82aba61fb61f3122f80e5e372b826 (diff) | |
| download | bcm5719-llvm-b4bef15ae625f8886d48796d9cfa313385bc5be5.tar.gz bcm5719-llvm-b4bef15ae625f8886d48796d9cfa313385bc5be5.zip | |
Another test for r157025 <rdar://problem/11460990>.
llvm-svn: 157034
| -rw-r--r-- | clang/test/SemaObjC/mismatched-undefined-method.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/mismatched-undefined-method.m b/clang/test/SemaObjC/mismatched-undefined-method.m new file mode 100644 index 00000000000..936e892020d --- /dev/null +++ b/clang/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'}} |

