summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/check-dup-objc-decls-1.m
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-23 22:38:38 +0000
committerChris Lattner <sabre@nondot.org>2008-11-23 22:38:38 +0000
commit88dcd2a1ab2f4cc87c7d4192f21c9323f5b3960c (patch)
tree96392d0a8df8f7ca5edb12ab416a918d35d5d22b /clang/test/SemaObjC/check-dup-objc-decls-1.m
parente3d20d954503fef1256b50977f7e2c9507452c1e (diff)
downloadbcm5719-llvm-88dcd2a1ab2f4cc87c7d4192f21c9323f5b3960c.tar.gz
bcm5719-llvm-88dcd2a1ab2f4cc87c7d4192f21c9323f5b3960c.zip
Tweak duplicate category diagnostic to work like the duplicate protocol diagnostic.
Also, point out where the previous decl was. This unxfails two tests. llvm-svn: 59918
Diffstat (limited to 'clang/test/SemaObjC/check-dup-objc-decls-1.m')
-rw-r--r--clang/test/SemaObjC/check-dup-objc-decls-1.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/SemaObjC/check-dup-objc-decls-1.m b/clang/test/SemaObjC/check-dup-objc-decls-1.m
index 5f55cfdb271..a634d0e6da4 100644
--- a/clang/test/SemaObjC/check-dup-objc-decls-1.m
+++ b/clang/test/SemaObjC/check-dup-objc-decls-1.m
@@ -1,5 +1,4 @@
// RUN: clang -fsyntax-only -verify %s
-// XFAIL
@interface Foo // expected-error {{previous definition is here}}
@end
@@ -36,5 +35,5 @@ void Gorf() // expected-error {{redefinition of 'Gorf' as different kind of symb
@protocol PP<P> @end
@protocol PP<Q> @end // expected-error {{duplicate protocol declaration of 'PP'}}
-@interface A(Cat)<P> @end
-@interface A(Cat)<Q> @end // expected-warning {{duplicate interface declaration for category 'A(Cat)'}}
+@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