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 testsuite/52641
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
sra-10.c
blob
49bfa31fa8e55d1a96d464f981463304c055e1ac
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized" } */
3
4
struct
S
5
{
6
int
a
[
1
];
7
int
z
[
256
];
8
};
9
10
void
foo
(
struct
S
*
s
,
int
i
)
11
{
12
struct
S disappear
;
13
14
disappear
.
a
[
i
] =
12
;
15
*
s
=
disappear
;
16
}
17
18
/* { dg-final { scan-tree-dump-times "disappear" 0 "optimized"} } */
19
/* { dg-final { cleanup-tree-dump "optimized" } } */