Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wwrite-strings-9.C
blob: 5db813b97ab2b42c26c5a3ccac600f4569ab22ee [
file
] [
log
] [
blame
]
// PR c++/79791
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-error=write-strings -pedantic-errors" }
char
*
s
=
"foo"
;
// { dg-warning "ISO C\\+\\+ forbids converting a string constant" }