xref: /llvm-project/clang/test/SemaObjC/warn-write-strings.m (revision aee49255074fd4ef38d97e6e70cbfbf2f9fd0fa7)
1// RUN: %clang_cc1 -verify -fsyntax-only -fconst-strings %s
2
3// PR4804
4char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char[4]' discards qualifiers}}
5