about summary refs log tree commit diff
path: root/boot/tests/transpile/basic.cskt
blob: 5844f94fe73b0d310152d61371f867b37e9a1d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
smoke test for the ir-driven transpiler: every translation
unit starts with the core preamble, optionally declares types
(forward + full def in topological order), then forward-decls
all functions, then bodies, then the runtime trailer when a
`main` is present. `main` is renamed to `catskill_main` so the
runtime can wrap it.

<<<

main = fun () {
}

>>>

#include "core.c"
void catskill_main(void);
void catskill_main(void) {
}
#include "runtime.c"