summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/check-dup-decl-methods-1.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-12-13 19:40:34 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-12-13 19:40:34 +0000
commitc17c86b56ca6c7e8c2960ec29ad8b5a2a9b57fe5 (patch)
tree776f0c6cec6b8d56c0eaab945fac2a762aea391c /clang/test/SemaObjC/check-dup-decl-methods-1.m
parent21dc2be97a33129f4b6a5b6baa4300a0eee2cd52 (diff)
downloadbcm5719-llvm-c17c86b56ca6c7e8c2960ec29ad8b5a2a9b57fe5.tar.gz
bcm5719-llvm-c17c86b56ca6c7e8c2960ec29ad8b5a2a9b57fe5.zip
objc: diagnose duplicate declaration of methods
in classes. // rdar://10535349 llvm-svn: 146504
Diffstat (limited to 'clang/test/SemaObjC/check-dup-decl-methods-1.m')
-rw-r--r--clang/test/SemaObjC/check-dup-decl-methods-1.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/check-dup-decl-methods-1.m b/clang/test/SemaObjC/check-dup-decl-methods-1.m
index 1dd6446e84c..667c3811456 100644
--- a/clang/test/SemaObjC/check-dup-decl-methods-1.m
+++ b/clang/test/SemaObjC/check-dup-decl-methods-1.m
@@ -10,8 +10,8 @@
@interface class1 : SUPER
- (int) meth; // expected-note {{previous declaration is here}}
- (int*) meth; // expected-error {{duplicate declaration of method 'meth'}}
-- (T*) meth1;
-- (T*) meth1;
+- (T*) meth1; // expected-note {{previous declaration is here}}
+- (T*) meth1; // expected-warning {{multiple declarations of method 'meth1' found and ignored}}
+ (T*) meth1;
@end
OpenPOWER on IntegriCloud