PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wall-write-strings.C
blobe380b321bcd39131e275eb5c0a02937739057704
1 // PR 8586
2 // { dg-do compile }
3 // { dg-options "-Wall" }
5 char* foo = "foo";              // { dg-warning "" }
6 const char* bar = "bar";