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-pr17078-1.c
blob
4b4e6bd475dd5ff214346a91a92fa8e4344945fe
1
/*
2
pr17078-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
void
test
(
int
*
ptr
)
12
{
13
int
i
=
1
;
14
goto
useless
;
15
if
(
0
)
16
{
17
useless
:
18
i
=
0
;
19
}
20
else
21
i
=
1
;
22
*
ptr
=
i
;
23
}
24
25
void
26
testTortureExecute
(
void
)
27
{
28
int
i
=
1
;
29
test
(&
i
);
30
if
(
i
)
31
ASSERT
(
0
);
32
return
;
33
}
34