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
* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr33870.c
blob
9c0e30d94be586db0dc1f3d2b0de67e7be5cd8d1
1
/* { dg-do run } */
2
3
struct
X
{
4
int
i
;
5
int
a
[
4
];
6
}
m
;
7
8
int
a
[
4
];
9
10
int
__attribute__
((
noinline
))
foo
(
int
b
)
11
{
12
int
(*
p
)[
4
] =
b
? &
a
: &
m
.
a
;
13
a
[
3
] =
0
;
14
(*
p
)[
3
] =
1
;
15
return
(*
p
)[
3
] + (*
p
)[
2
] + (*
p
)[
1
] +
a
[
0
] +
a
[
3
];
16
}
17
18
extern
void
abort
(
void
);
19
20
int
main
()
21
{
22
int
i
;
23
for
(
i
=
0
;
i
<
4
; ++
i
)
24
a
[
i
] =
0
;
25
if
(
foo
(
1
) !=
2
)
26
abort
();
27
return
0
;
28
}
29