0039-struct.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
0039-struct.c (388B)
---
1 /*
2 PATTERN:
3 0039-struct.c:11: warning: type defaults to 'int' in declaration
4 0039-struct.c:11: warning: empty declaration
5 0039-struct.c:11: error: expected ';' before '}'
6 0039-struct.c:19: warning: 'cap' defined but not used
7 0039-struct.c:19: warning: 'v' defined but not used
8 .
9 */
10
11 typedef struct { } Vec;
12
13 static void
14 vecresize(Vec *v, int cap)
15 {
16 return;
17 }
18
19 int main()
20 {
21 return 0;
22 }