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