Debian Codegraph @

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

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