write-strings-default.C   [plain text]


// { dg-do compile }
// Test the default for -Wwrite-strings

int main()
{
   char* p = "Asgaard";         // { dg-warning "warning:.*deprecated.*" }
}