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