summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/class-conforming-protocol-1.m
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-23 23:12:31 +0000
committerChris Lattner <sabre@nondot.org>2008-11-23 23:12:31 +0000
commit0369c57ac6794c82ef3b35f2e6cae9e46debc4f7 (patch)
tree8045f39374ddfcbefd84641a38bbe9021cecaf51 /clang/test/SemaObjC/class-conforming-protocol-1.m
parente6447ef98952cb38c8fcde42523406bb9dd7359a (diff)
downloadbcm5719-llvm-0369c57ac6794c82ef3b35f2e6cae9e46debc4f7.tar.gz
bcm5719-llvm-0369c57ac6794c82ef3b35f2e6cae9e46debc4f7.zip
Make all the 'redefinition' diagnostics more consistent, and make the
"previously defined here" diagnostics all notes. llvm-svn: 59920
Diffstat (limited to 'clang/test/SemaObjC/class-conforming-protocol-1.m')
-rw-r--r--clang/test/SemaObjC/class-conforming-protocol-1.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaObjC/class-conforming-protocol-1.m b/clang/test/SemaObjC/class-conforming-protocol-1.m
index 6afee0d3d4d..00f3204c628 100644
--- a/clang/test/SemaObjC/class-conforming-protocol-1.m
+++ b/clang/test/SemaObjC/class-conforming-protocol-1.m
@@ -5,11 +5,11 @@
@protocol P3 @end
@interface INTF
-- (INTF*) METH1; // expected-error {{previous declaration is here}}
+- (INTF*) METH1; // expected-note {{previous declaration is here}}
- (INTF<P1>*) METH1; // expected-error {{duplicate declaration of method 'METH1'}}
- (INTF<P1,P2>*) METH2;
-- (INTF<P2,P1>*) METH2; // expected-error {{previous declaration is here}}
+- (INTF<P2,P1>*) METH2; // expected-note {{previous declaration is here}}
- (INTF<P2,P1,P3>*) METH2; // expected-error {{duplicate declaration of method 'METH2'}}
- (INTF<P2,P1,P3>*) METH3;
OpenPOWER on IntegriCloud