summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-05 23:29:49 +0000
committerChris Lattner <sabre@nondot.org>2010-09-05 23:29:49 +0000
commitee8df8f1678de51cfc38014c61dc0624805bbe0a (patch)
tree9071b15f93f444d74a3a349db31b17b8d6ccdf8c /clang/test
parent2ba828f36ddad474c984992bde793211746ba8c8 (diff)
downloadbcm5719-llvm-ee8df8f1678de51cfc38014c61dc0624805bbe0a.tar.gz
bcm5719-llvm-ee8df8f1678de51cfc38014c61dc0624805bbe0a.zip
fix PR7192 by defining wchar_t in a more conventional way. The
type of L"x" can change based on command line arguments. llvm-svn: 113127
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Sema/warn-write-strings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-write-strings.c b/clang/test/Sema/warn-write-strings.c
index 450d0a6fe62..dd0bb8a6d83 100644
--- a/clang/test/Sema/warn-write-strings.c
+++ b/clang/test/Sema/warn-write-strings.c
@@ -2,3 +2,9 @@
// PR4804
char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char [4]' discards qualifiers}}
+
+// PR7192
+#include <stddef.h>
+void test(wchar_t *dst) {
+ dst[0] = 0; // Ok.
+}
OpenPOWER on IntegriCloud