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
Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-980526-3.c
blob
08db9771d8bf71d349df63e0ebe69cf184589e3e
1
/*
2
980526-3.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
int
compare
(
unsigned int
x
,
unsigned int
y
)
12
{
13
if
(
x
==
y
)
14
return
0
;
15
else
16
return
1
;
17
}
18
19
void
20
testTortureExecute
(
void
)
21
{
22
unsigned int
i
,
j
,
k
,
l
;
23
i
=
5
;
j
=
2
;
k
=
0
;
l
=
2
;
24
if
(
compare
(
5
%(~(
unsigned
)
2
),
i
%~
j
)
25
||
compare
(
0
,
k
%~
l
))
26
ASSERT
(
0
);
27
else
28
return
;
29
}
30