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-20001013-1.c
blob
5a16ade568e3262c228057dc3651e7281c73d528
1
/*
2
20001013-1.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
struct
x
{
12
int
a
,
b
;
13
}
z
= { -
4028
,
4096
};
14
15
int
foo
(
struct
x
*
p
,
int
y
)
16
{
17
if
((
y
&
0xff
) !=
y
|| -
p
->
b
>=
p
->
a
)
18
return
1
;
19
return
0
;
20
}
21
22
void
23
testTortureExecute
(
void
)
24
{
25
if
(
foo
(&
z
,
10
))
26
ASSERT
(
0
);
27
return
;
28
}
29