summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/check-dup-objc-decls-1.m
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-03-05 22:42:55 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-03-05 22:42:55 +0000
commitd2bccafe825b600c21c9593006975fe622a402ae (patch)
treeb794bd30c2e1636868d41f04f1bb55881b3a92fc /clang/test/SemaObjC/check-dup-objc-decls-1.m
parent65bb3116293d2a8e6938258e7dc00e078c1bb010 (diff)
downloadbcm5719-llvm-d2bccafe825b600c21c9593006975fe622a402ae.tar.gz
bcm5719-llvm-d2bccafe825b600c21c9593006975fe622a402ae.zip
Patch to build qualifier on objective-c
pointer types. Fixes radar 7626768. llvm-svn: 97847
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, 5 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/check-dup-objc-decls-1.m b/clang/test/SemaObjC/check-dup-objc-decls-1.m
index 1f80293588a..8dde777f743 100644
--- a/clang/test/SemaObjC/check-dup-objc-decls-1.m
+++ b/clang/test/SemaObjC/check-dup-objc-decls-1.m
@@ -37,3 +37,8 @@ void Gorf() // expected-error {{redefinition of 'Gorf' as different kind of symb
@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'}}
+
+// rdar 7626768
+@class NSString;
+NSString * TestBaz; // expected-note {{previous definition is here}}
+NSString * const TestBaz; // expected-error {{redefinition of 'TestBaz' with a different type}}
OpenPOWER on IntegriCloud