diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-05-21 23:28:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-05-21 23:28:58 +0000 |
commit | 561da7e046ea6b39f4e632c68128fd01c985b46b (patch) | |
tree | e91e60e87c49664e1fe482679d0b791087b7218e /test | |
parent | 1fd6d44d7ca97631497551bbf98866263143d706 (diff) |
Clang missing warning about conflicting declaration vs. definition
for variable arguments list methods. (radar 8006060).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/SemaObjC/method-conflict.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaObjC/method-conflict.m b/test/SemaObjC/method-conflict.m index 08fdfc017c..5dc886fb7f 100644 --- a/test/SemaObjC/method-conflict.m +++ b/test/SemaObjC/method-conflict.m @@ -53,3 +53,14 @@ typedef NSUInteger XDSourceLanguage; return 0; } @end + +// rdar: // 8006060 +@interface Bar +- (void)foo:(id)format, ...; // expected-note {{previous declaration is here}} +- (void)foo1:(id)format; // expected-note {{previous declaration is here}} +@end +@implementation Bar +- (void)foo:(id)format {}; // expected-warning {{conflicting variadic declaration of method and its implementation}} +- (void)foo1:(id)format, ... {}; // expected-warning {{conflicting variadic declaration of method and its implementation}} +@end + |