summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/write-strings-default.C
blob: ee6b217185c193886b2c6e0561714b1cb474a1fb (plain)
1
2
3
4
5
6
7
// { dg-do compile }
// Test the default for -Wwrite-strings

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