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