From 36c49e3f258dced101949edabd72e9bc3f1dedc4 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 17 Sep 2010 15:54:40 +0000 Subject: Vendor import of clang r114020 (from the release_28 branch): http://llvm.org/svn/llvm-project/cfe/branches/release_28@114020 Approved by: rpaulo (mentor) --- test/Sema/warn-write-strings.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/Sema/warn-write-strings.c') diff --git a/test/Sema/warn-write-strings.c b/test/Sema/warn-write-strings.c index 04af00c..c936a12 100644 --- a/test/Sema/warn-write-strings.c +++ b/test/Sema/warn-write-strings.c @@ -2,3 +2,9 @@ // PR4804 char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'char const [4]' discards qualifiers}} + +// PR7192 +#include +void test(wchar_t *dst) { + dst[0] = 0; // Ok. +} -- cgit v1.1