Chandler Carruth | 50465d1 | 2011-04-23 06:30:43 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify -fsyntax-only -fconst-strings %s |
John McCall | 4b7a834 | 2010-03-15 10:54:44 +0000 | [diff] [blame] | 2 | |
| 3 | // PR4804 |
Chris Lattner | 58f9e13 | 2010-09-05 00:04:01 +0000 | [diff] [blame] | 4 | char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char [4]' discards qualifiers}} |
Chris Lattner | 6d6370e | 2010-09-05 23:29:49 +0000 | [diff] [blame] | 5 | |
| 6 | // PR7192 |
| 7 | #include <stddef.h> |
| 8 | void test(wchar_t *dst) { |
| 9 | dst[0] = 0; // Ok. |
| 10 | } |