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
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-20101025-1.c
blob
bdbf72d6ae146844b4d5928700f78602eded8b81
1
/*
2
20101025-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
static int
g_7
;
12
static int
*
volatile
g_6
= &
g_7
;
13
int
g_3
;
14
15
static int
f1
(
int
*
p_58
)
16
{
17
return
*
p_58
;
18
}
19
20
void
f2
(
int
i
);
21
void
f2
(
int
i
)
22
{
23
g_3
=
i
;
24
}
25
26
int
f3
(
void
);
27
int
f3
(
void
)
28
{
29
*
g_6
=
1
;
30
f2
(
f1
(&
g_7
));
31
return
0
;
32
}
33
34
void
35
testTortureExecute
(
void
)
36
{
37
f3
();
38
if
(
g_3
!=
1
)
39
ASSERT
(
0
);
40
return
;
41
}
42