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-20001203-1.c
blob
63bc16918c5485416f3c72370bf4430f4ac862c3
1
/*
2
20001203-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
/* Origin: PR c/410 from Jan Echternach
12
<jan.echternach@informatik.uni-rostock.de>,
13
adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
14
*/
15
16
static void
17
foo
(
void
)
18
{
19
struct
{
20
long
a
;
21
char
b
[
1
];
22
}
x
= {
2
, {
0
} };
23
}
24
25
void
26
testTortureExecute
(
void
)
27
{
28
int
tmp
;
29
foo
();
30
tmp
=
1
;
31
return
;
32
}
33