repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-pr64682.c
blob
07760dce8ffce483852dbcdd0977e9b1d3561ec8
1
/*
2
pr64682.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
/* PR rtl-optimization/64682 */
12
13
int
a
,
b
=
1
;
14
15
void
16
foo
(
int
x
)
17
{
18
if
(
x
!=
5
)
19
ASSERT
(
0
);
20
}
21
22
void
23
testTortureExecute
(
void
)
24
{
25
int
i
;
26
for
(
i
=
0
;
i
<
56
;
i
++)
27
for
(;
a
;
a
--)
28
;
29
30
int
*
c
= &
b
;
31
if
(*
c
)
32
*
c
=
1
% (
unsigned int
) *
c
|
5
;
33
34
foo
(
b
);
35
36
return
;
37
}