Skip to content

Commit 258882d

Browse files
make a good test for struct initialization
1 parent 337dae4 commit 258882d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
nostd: prod
3-
./production --nostd -o tmp.s STRICT/cli.lm
3+
./production --nostd -o tmp.s tests/strict/cc2.lm
44
as -o tmp.o tmp.s
55
ld -o tmp tmp.o
66
./tmp && echo $?

tests/strict/cc2.lm

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
import STDLIB/default-instruction-set.lm;
3+
import STDLIB/default-primitives.lm;
4+
import STDLIB/default-rules.lm;
5+
import STDLIB/default-stdlib.lm;
6+
7+
echo := λ(: x U64). (: (
8+
x
9+
) U64);
10+
11+
main := (
12+
(let x (SCons(
13+
(close(SAtom( 'an-atom_s )))
14+
(close(SNil))
15+
)))
16+
(print x)
17+
);

0 commit comments

Comments
 (0)