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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-dse-17.c
blob
0db5198ac1d78009c62564a2e1f0e3c7051f3431
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-dse1" } */
3
4
struct
s1
{
5
unsigned short
f1
;
6
unsigned char
f2
;
7
};
8
9
struct
s2
{
10
struct
s1
*
p1
;
11
};
12
13
void
f1
(
struct
s2
*
p
)
14
{
15
p
->
p1
->
f2
=
9
;
16
p
->
p1
->
f2
=
10
;
17
}
18
19
/* { dg-final { scan-tree-dump-times "f2 =" 1 "dse1" } } */