Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wwrite-strings-1.C
blob: 05abca3a2d9f9d46fdb6a3a9cb2912107ea26710 [
file
] [
log
] [
blame
]
// PR c++/79791
// { dg-do compile { target c++11 } }
// { dg-options "" }
char
*
s
=
"foo"
;
// { dg-warning "ISO C\\+\\+ forbids converting a string constant" }