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
/
tcc
/
80_flexarray.c
blob
81d01c100bc3e868de1402364b6d9fbcb76c8461
1
#include <stdio.h>
2
struct
wchar
{
3
const char
*
data
;
char
mem
[];
4
};
5
struct
wint
{
6
const char
*
data
;
int
mem
[];
7
};
8
int
f1char
(
void
) {
9
char
s
[
9
]=
"nonono"
;
10
struct
wchar q
= {
"bugs"
};
11
return
!
s
[
0
];
12
}
13
int
f1int
(
void
) {
14
char
s
[
9
]=
"nonono"
;
15
struct
wint q
= {
"bugs"
};
16
return
!
s
[
0
];
17
}
18
int
main
(
void
) {
19
char
s
[
9
]=
"nonono"
;
20
static struct
wchar q
= {
"bugs"
, {
'c'
}};
21
//printf ("tcc has %s %s\n", s, q.data);
22
if
(
f1char
() ||
f1int
())
23
printf
(
"bla
\n
"
);
24
return
!
s
[
0
];
25
}