repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tccpp: tcc_warning("extra tokens after directive")
[tinycc.git]
/
tests
/
tests2
/
80_flexarray.c
blob
864d4298fe1016163d20f7c38eb2f5d5812f1b77
1
#include <stdio.h>
2
struct
wchar
{
3
char
*
data
;
char
mem
[];
4
};
5
struct
wint
{
6
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
empty
[] = {};
// GNU extension
19
int
main
(
void
) {
20
char
s
[
9
]=
"nonono"
;
21
static struct
wchar q
= {
"bugs"
, {
'c'
}};
22
//printf ("tcc has %s %s\n", s, q.data);
23
if
(
f1char
() ||
f1int
())
24
printf
(
"bla
\n
"
);
25
return
!
s
[
0
];
26
}