Skip to content

Commit

Permalink
Re-done
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Dec 6, 2017
1 parent 74222f1 commit e9668d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/silly/multiple-args.tig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let
function f(a:int, b:int, c:int, d:int, e:int, f:int, g:int, h:int, i:int, j:int):int =
a*b*c*d*e*f*g*h*i*j
in
if f(1,2,3,4,5,6,7,8,9,10) = 3628800 then print("true") else print("false"); 0
print_int(f(1,2,3,4,5,6,7,8,9,10)); 0
end

/* Argument passing:
Expand Down
9 changes: 6 additions & 3 deletions tests/silly/while.tig
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
(while 1
do
if 1 then print("hey!"); 0)
let
var a:int := 0
in
while a <> 3 do
(print_int(a); a:=a+1); 0
end

0 comments on commit e9668d9

Please sign in to comment.