make some objc redefinition warnings more consistent: call definitions
"definitions", not declarations. Point out the location of the
original definition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59919 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjC/check-dup-objc-decls-1.m b/test/SemaObjC/check-dup-objc-decls-1.m
index a634d0e..28c6068 100644
--- a/test/SemaObjC/check-dup-objc-decls-1.m
+++ b/test/SemaObjC/check-dup-objc-decls-1.m
@@ -29,11 +29,11 @@
@protocol P -im1; @end
@protocol Q -im2; @end
-@interface A<P> @end
-@interface A<Q> @end // expected-error {{duplicate interface declaration for class 'A'}}
+@interface A<P> @end // expected-note {{previous definition is here}}
+@interface A<Q> @end // expected-error {{duplicate interface definition for class 'A'}}
-@protocol PP<P> @end
-@protocol PP<Q> @end // expected-error {{duplicate protocol declaration of 'PP'}}
+@protocol PP<P> @end // expected-note {{previous definition is here}}
+@protocol PP<Q> @end // expected-error {{duplicate protocol definition of 'PP'}}
@interface A(Cat)<P> @end // expected-note {{previous definition is here}}
@interface A(Cat)<Q> @end // expected-warning {{duplicate definition of category 'Cat' on interface 'A'}}