summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wall-write-strings.C
blob: e380b321bcd39131e275eb5c0a02937739057704 (plain)
1
2
3
4
5
6
7
// PR 8586
// { dg-do compile }
// { dg-options "-Wall" }

char* foo = "foo";              // { dg-warning "" }
const char* bar = "bar";