diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-16 16:52:15 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-16 16:52:15 +0000 |
commit | 4a37f65f1c1373c9956d118a012943de2f61edb0 (patch) | |
tree | 52aebaff3a47b97dbac434530524c30967468412 /test/SemaObjC | |
parent | a16e9ac1f192503038f49e0c52edd7dcb2ce023a (diff) | |
download | src-4a37f65f1c1373c9956d118a012943de2f61edb0.tar.gz src-4a37f65f1c1373c9956d118a012943de2f61edb0.zip |
Update clang to r98631.
Notes
Notes:
svn path=/vendor/clang/dist/; revision=205219
Diffstat (limited to 'test/SemaObjC')
-rw-r--r-- | test/SemaObjC/duplicate-property.m | 8 | ||||
-rw-r--r-- | test/SemaObjC/warn-write-strings.m | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaObjC/duplicate-property.m b/test/SemaObjC/duplicate-property.m new file mode 100644 index 000000000000..bc1fe71a1546 --- /dev/null +++ b/test/SemaObjC/duplicate-property.m @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +@interface Foo { + id x; +} +@property (nonatomic, retain) id x; // expected-note{{property declared here}} +@property (nonatomic, retain) id x; // expected-error{{property has a previous declaration}} +@end diff --git a/test/SemaObjC/warn-write-strings.m b/test/SemaObjC/warn-write-strings.m new file mode 100644 index 000000000000..938f0be7721f --- /dev/null +++ b/test/SemaObjC/warn-write-strings.m @@ -0,0 +1,4 @@ +// RUN: %clang_cc1 -verify -fsyntax-only -Wwrite-strings %s + +// PR4804 +char* x = "foo"; // expected-warning {{initializing 'char const [4]' discards qualifiers, expected 'char *'}} |