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-pr37102.c
blob
18fd198fad2ab0218d60a56b4281bd1e50a8cf1e
1
/*
2
pr37102.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
unsigned int
a
,
b
=
1
,
c
;
12
13
void
14
foo
(
int
x
)
15
{
16
if
(
x
!=
5
)
17
ASSERT
(
0
);
18
}
19
20
void
21
testTortureExecute
(
void
)
22
{
23
unsigned int
d
,
e
;
24
for
(
d
=
1
;
d
<
5
;
d
++)
25
if
(
c
)
26
a
=
b
;
27
a
=
b
;
28
e
=
a
<<
1
;
29
if
(
e
)
30
e
= (
e
<<
1
) ^
1
;
31
foo
(
e
);
32
return
;
33
}
34