repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
Sema
/
warn-write-strings.c
blob
d8e31d95df0f9253d16aac7f62fc48921580773c
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
}