Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wwrite-strings-1.C

raw
1 // PR c++/79791
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4
5 char *s = "foo"; // { dg-warning "ISO C\\+\\+ forbids converting a string constant" }