diff options
Diffstat (limited to 'test/Sema/warn-write-strings.c')
-rw-r--r-- | test/Sema/warn-write-strings.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/warn-write-strings.c b/test/Sema/warn-write-strings.c index 04af00c..c936a12 100644 --- a/test/Sema/warn-write-strings.c +++ b/test/Sema/warn-write-strings.c @@ -2,3 +2,9 @@ // PR4804 char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'char const [4]' discards qualifiers}} + +// PR7192 +#include <stddef.h> +void test(wchar_t *dst) { + dst[0] = 0; // Ok. +} |