summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/check-dup-objc-decls-1.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-04-06 23:43:32 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-04-06 23:43:32 +0000
commit54d569c51d2343eb71186b3545a1d2b1855b6718 (patch)
treec7060a5902a9257f5a03f172dde25cdce756f39c /clang/test/SemaObjC/check-dup-objc-decls-1.m
parentc4c9ed0f9bdfcb60df55bcc0f06ac14ec28d9ffc (diff)
downloadbcm5719-llvm-54d569c51d2343eb71186b3545a1d2b1855b6718.tar.gz
bcm5719-llvm-54d569c51d2343eb71186b3545a1d2b1855b6718.zip
Warn instead of error on duplicate protocol definitions.
Be kind to so many projects which are doing this (and be like gcc). llvm-svn: 68474
Diffstat (limited to 'clang/test/SemaObjC/check-dup-objc-decls-1.m')
-rw-r--r--clang/test/SemaObjC/check-dup-objc-decls-1.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/check-dup-objc-decls-1.m b/clang/test/SemaObjC/check-dup-objc-decls-1.m
index 4181ac097b4..dc9c8f44261 100644
--- a/clang/test/SemaObjC/check-dup-objc-decls-1.m
+++ b/clang/test/SemaObjC/check-dup-objc-decls-1.m
@@ -33,7 +33,7 @@ void Gorf() // expected-error {{redefinition of 'Gorf' as different kind of symb
@interface A<Q> @end // expected-error {{duplicate interface definition for class 'A'}}
@protocol PP<P> @end // expected-note {{previous definition is here}}
-@protocol PP<Q> @end // expected-error {{duplicate protocol definition of 'PP'}}
+@protocol PP<Q> @end // expected-warning {{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'}}
OpenPOWER on IntegriCloud