blob: dee554cf6b575e2cef6157fdb09f804a4d5aeca8 [file] [log] [blame]
Chandler Carruth50465d12011-04-23 06:30:43 +00001// RUN: %clang_cc1 -verify -fsyntax-only -fconst-strings %s
John McCall4b7a8342010-03-15 10:54:44 +00002
3// PR4804
Chris Lattner58f9e132010-09-05 00:04:01 +00004char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char [4]' discards qualifiers}}
Chris Lattner6d6370e2010-09-05 23:29:49 +00005
6// PR7192
7#include <stddef.h>
8void test(wchar_t *dst) {
9 dst[0] = 0; // Ok.
10}