[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / warn-write-strings.c
blobd8e31d95df0f9253d16aac7f62fc48921580773c
1 // RUN: %clang_cc1 -verify -fsyntax-only -fconst-strings %s
3 // PR4804
4 char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char[4]' discards qualifiers}}
6 // PR7192
7 #include <stddef.h>
8 void test(wchar_t *dst) {
9 dst[0] = 0; // Ok.