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-pr69320-1.c
blob
07d442e3b6279bd42f11dcbd493095d4d8ee9614
1
/*
2
pr69320-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
#include <stdlib.h>
12
int
a
,
b
,
d
,
f
;
13
char
c
;
14
static int
*
e
= &
d
;
15
void
16
testTortureExecute
(
void
) {
17
int
g
= -
1L
;
18
*
e
=
g
;
19
c
=
4
;
20
for
(;
c
>=
14
;
c
++)
21
*
e
=
1
;
22
f
=
a
==
0
;
23
*
e
^=
f
;
24
#if 0
// Enable when SDCC intermingles
25
int
h
= ~
d
;
26
if
(
d
)
27
b
=
h
;
28
if
(
h
)
29
return
;
30
ASSERT
(
0
);
31
#endif
32
}
33