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
/
pr64353.C
blob
7859918cf56cc89734aa2cd96408045633445c6f
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
class C
5
{
6
int y, x;
7
void i ();
8
bool __attribute__((const)) xx () { return x; }
9
};
10
11
void C::i ()
12
{
13
if (xx ())
14
x = 1;
15
}