repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wall-write-strings.C
blob
e380b321bcd39131e275eb5c0a02937739057704
1
// PR 8586
2
// { dg-do compile }
3
// { dg-options "-Wall" }
4
5
char* foo = "foo"; // { dg-warning "" }
6
const char* bar = "bar";
7