Mercurial > hg > CbC > CbC_llvm
annotate clang/test/Sema/warn-write-strings.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -verify -fsyntax-only -fconst-strings %s |
2 | |
3 // PR4804 | |
4 char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char [4]' discards qualifiers}} | |
5 | |
6 // PR7192 | |
7 #include <stddef.h> | |
8 void test(wchar_t *dst) { | |
9 dst[0] = 0; // Ok. | |
10 } |