Sign in
gnu
/
gcc
/
4a0fed0c0c7241562eaa5f1a4c916b689429ad86
/
.
/
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" }