John McCall | 4b7a834 | 2010-03-15 10:54:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify -fsyntax-only -Wwrite-strings %s |
2 | |||||
3 | // PR4804 | ||||
Douglas Gregor | 08a4190 | 2010-04-09 17:53:29 +0000 | [diff] [blame] | 4 | char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'char const [4]' discards qualifiers}} |