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-20001121-1.c
blob
f1f77db8536e7d1b6a44c44fbc6805e59bbf1ca8
1
/*
2
20001121-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
#pragma disable_warning 93
10
#endif
11
12
double
d
;
13
14
static
15
inline
double
foo
(
void
)
16
{
17
return
d
;
18
}
19
20
static
21
inline
int
bar
(
void
)
22
{
23
foo
();
24
return
0
;
25
}
26
27
void
28
testTortureExecute
(
void
)
29
{
30
if
(
bar
())
31
ASSERT
(
0
);
32
return
;
33
}
34