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-951115-1.c
blob
1e56559479a3ab85b5ebe483e3d41fc5e194e34a
1
/*
2
951115-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
int
var
=
0
;
12
13
void
g
()
14
{
15
var
=
1
;
16
}
17
18
void
f
()
19
{
20
int
f2
=
0
;
21
22
if
(
f2
==
0
)
23
;
24
25
g
();
26
}
27
28
void
29
testTortureExecute
(
void
)
30
{
31
f
();
32
if
(
var
!=
1
)
33
ASSERT
(
0
);
34
return
;
35
}
36