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
arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
alias-access-path-7.c
blob
05cf037c2abd56f7e389cebccf92944bd65f4521
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -fno-strict-aliasing -fdump-tree-optimized" } */
3
4
struct
S
5
{
6
int
i
;
7
int
j
;
8
};
9
struct
U
10
{
11
struct
S a
[
10
];
12
};
13
int
14
foo
(
struct
U
*
u
,
int
n
,
int
i
,
int
j
)
15
{
16
u
->
a
[
i
].
i
=
123
;
17
u
->
a
[
j
].
j
=
j
;
18
return
u
->
a
[
i
].
i
;
19
}
20
/* { dg-final { scan-tree-dump-times "return 123" 1 "optimized"} } */