blob: dd0bb8a6d83a486e4c003dac8011005a54bc7ae2 [file] [log] [blame]
John McCall4b7a8342010-03-15 10:54:44 +00001// RUN: %clang_cc1 -verify -fsyntax-only -Wwrite-strings %s
2
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}