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-980612-1.c
blob
54064c1376de2a34fe919040e4305ed1f090dd81
1
/*
2
980612-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
struct
fd
12
{
13
unsigned char
a
;
14
unsigned char
b
;
15
}
f
= {
5
};
16
17
struct
fd
*
g
() {
return
&
f
; }
18
int
h
() {
return
-
1
; }
19
20
void
21
testTortureExecute
(
void
)
22
{
23
struct
fd
*
f
=
g
();
24
f
->
b
=
h
();
25
if
(((
f
->
a
&
0x7f
) & ~
0x10
) <=
2
)
26
ASSERT
(
0
);
27
return
;
28
}
29