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-20141022-1.c
blob
1950de1d79e1b58f0b651f238d0997eadc305235
1
/*
2
20141022-1.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
#define ABORT() do { ASSERT (0); }while(0)
12
int
f
(
int
a
)
13
;
14
int
f
(
int
a
)
15
{
16
int
fem_key_src
;
17
int
D2930
=
a
&
4294967291
;
18
fem_key_src
=
a
==
6
?
0
:
15
;
19
fem_key_src
=
D2930
!=
1
?
fem_key_src
:
0
;
20
return
fem_key_src
;
21
}
22
23
void
24
testTortureExecute
(
void
)
25
{
26
if
(
f
(
0
) !=
15
)
27
ABORT
();
28
if
(
f
(
1
) !=
0
)
29
ABORT
();
30
if
(
f
(
6
) !=
0
)
31
ABORT
();
32
if
(
f
(
5
) !=
0
)
33
ABORT
();
34
if
(
f
(
15
) !=
15
)
35
ABORT
();
36
}