Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Oct 7, 2024
1 parent f7e5147 commit d9cd875
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions test_wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.wasm
*.wat
1 change: 0 additions & 1 deletion test_wasm/clean.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

rm -f *.cmi *.cmx *.o a.out*
File renamed without changes.
8 changes: 6 additions & 2 deletions test_wasm/stuff.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
let rec fib n = if n < 2 then 1 else fib (n - 1) + fib (n - 2);;

let () =
for i = 1 to 5 do
for i = 0 to 35 do
print_string "fib (";
print_int i;
print_string " plop\n"
print_string ") = ";
print_int (fib i);
print_string "\n"
done

0 comments on commit d9cd875

Please sign in to comment.