clang-1/test/Sema/warn-write-strings.c

5 строки
181 B
C

// RUN: %clang_cc1 -verify -fsyntax-only -Wwrite-strings %s
// PR4804
char* x = "foo"; // expected-warning {{initializing 'char const [4]' discards qualifiers, expected 'char *'}}