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-pr83477.c
blob
ad296e0df68a420ae7fc501f3d059818f22cd8fd
1
/*
2
pr83477.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
int
yf
=
0
;
8
9
void
10
pl
(
int
q5
,
int
nd
)
11
{
12
unsigned int
hp
=
q5
;
13
int
zx
= (
q5
==
0
) ?
hp
: (
hp
/
q5
);
14
15
yf
= ((
nd
<
2
) *
zx
!=
0
) ?
nd
:
0
;
16
}
17
18
void
19
testTortureExecute
(
void
)
20
{
21
pl
(
1
, !
yf
);
22
if
(
yf
!=
1
)
23
ASSERT
(
0
);
24
25
return
;
26
}
27
28