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-pr70005.c
blob
e8e1cd7600b5bc22e0c010730daf71887ed0a4ba
1
/*
2
pr70005.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 char
a
=
6
;
12
int
b
,
c
;
13
14
static void
15
fn1
()
16
{
17
int
i
=
a
>
1
?
1
:
a
,
j
=
6
& (
c
=
a
&& (
b
=
a
));
18
int
d
=
0
,
e
=
a
,
f
= ~
c
,
g
=
b
||
a
;
19
unsigned char
h
= ~
a
;
20
if
(
a
)
21
f
=
j
;
22
if
(
h
&&
g
)
23
d
=
a
;
24
i
= -~(
f
*
d
*
h
) +
c
&& (
e
||
i
) ^
f
;
25
if
(
i
!=
1
)
26
ASSERT
(
0
);
27
}
28
29
void
30
testTortureExecute
(
void
)
31
{
32
fn1
();
33
return
;
34
}