// { dg-do compile }
// { dg-options -Wwrite-strings }

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


syntax highlighted by Code2HTML, v. 0.9.1