11 lines · c
1// RUN: %clang_cc1 -verify -fsyntax-only -fconst-strings %s2 3// PR48044char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char[4]' discards qualifiers}}5 6// PR71927#include <stddef.h>8void test(wchar_t *dst) {9 dst[0] = 0; // Ok.10}11