diff options
Diffstat (limited to 'tutorial/task4.mu')
-rw-r--r-- | tutorial/task4.mu | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tutorial/task4.mu b/tutorial/task4.mu new file mode 100644 index 00000000..ca8da8f4 --- /dev/null +++ b/tutorial/task4.mu @@ -0,0 +1,15 @@ +fn the-answer -> _/eax: int { + var result/eax: int <- copy 0 + # insert your statement below { + + # } + return result +} + +fn test-the-answer { + var result/eax: int <- the-answer + check-ints-equal result, 0x2a, "F - the-answer should return 42, but didn't." +} + +fn main { +} |