Debian Codegraph @

gcc/testsuite/g++.dg/warn/write-strings.C

raw
1 // { dg-do compile }
2 // { dg-options -Wwrite-strings }
3
4 int main()
5 {
6 char* p = "Asgaard"; // { dg-warning "deprecated|forbids converting a string constant" }
7 }