repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
max-1.c
blob
7f03edc590d4898edef314bd9a8c0a7343c9fcfd
1
/* PR middle-end/18548 */
2
/* Test case reduced by Andrew Pinski <pinskia@physics.uc.edu> */
3
/* { dg-do run } */
4
/* { dg-options "-O1 -fno-tree-lrs" } */
5
6
extern
void
abort
(
void
);
7
8
long
fff
[
10
];
9
10
void
f
(
long
a
,
long
b
)
11
{
12
long
crcc
=
b
;
13
long
d
= *((
long
*)(
a
+
1
));
14
int
i
;
15
16
a
=
d
>=
b
?
d
:
b
;
17
18
19
for
(
i
=
0
;
i
<
10
;
i
++)
20
fff
[
i
] =
a
;
21
}
22
23
int
main
(
void
)
24
{
25
int
i
;
26
long
a
=
10
;
27
f
((
long
)(&
a
)-
1
,
0
);
28
for
(
i
=
0
;
i
<
10
;
i
++)
29
if
(
fff
[
i
]!=
10
)
30
abort
();
31
return
0
;
32
}
33