summaryrefslogtreecommitdiff
path: root/test/tests
blob: 327a5afd8d85f9ee8ae2d6efc200780573b0c35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Format:
# [B|F] testname [E|P] result
#    [B|F]: Compiler outcome.
#	B: Expect that this test will build.
#	F: Expect that this test will not build.
#    testname: Test case
#	The test that will run. We will try to
#	compile 'testname.myr' to 'testname',
#	and then execute it, verifying the result
#    [E|P]: Result type
#	E tells us that the result is an exit status
#	E tells us that the result output on stdout
#    result: Result value
#	What we compare with. This should be self-
#	evident.
B main		E	0
B add		E	53
B mul		E	42
B div		E	42
B mod		E	6
B bsr		E	5
B trunccast	E	15
B zwidencast	E	99
B swidencast	E	99
B derefassign	E	123
B ptrpreinc	E	9
B outparam	E	42
B outparam-sl	E	2
B struct1	E	12
B struct	E	42
B structptr	E	42
B structasn	E	42
B structarray	E	42
B structret	E	42
B neststruct	E	3
B array		E	7
B arrayaddr	E	42
B global-arrayvar	E	7
B arraylen	E	12
B slice		E	10
B slicelen	E	5
B call		E	42
B voidcall	E	12
B callbig	E	42
B nestfn	E	42
B closure	E	55
B loop		E	45
B condiftrue	E	7
B overlappingif	E	2
B condiffalse	E	9
B condifrel	E	7
B fib		E	21
B float		E	1
B log-and	E	0
B log-or	E	1
B str		E	102
B generic	E	42
B cstr-builtin	E	42
B genericcall	E	42
B generictype	E	0
B sizeof	E	4
B gsizeof	E	5
B mkunion	E	0
B matchint	E	84
B matchconst	E	88
B matchunion	E	84
B matchargunion	E	69
B matchbind	E	8
B arraylit	E	3
B arraylit-ni	E	2
B structlit	E	42
B tuple		E	42
B tyrec		E	42
B helloworld	P	Hello-世界
F declmismatch
F infermismatch
F usedef
F occur
F tyoccur
F union-extraarg
F union-missingarg
F match-badtypes
F generic-in-const
F aritylow
F arityhigh