Skip to content

Commit f7d8fcc

Browse files
authored
Test evaluation order for for loops (#426)
1 parent d2e6c0c commit f7d8fcc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
(* TEST *)
2+
3+
let p i x =
4+
print_int i;
5+
print_newline ();
6+
x
7+
8+
let _ =
9+
for i = (p 13 0) to (p 25 3) do
10+
p i ()
11+
done
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
13
2+
25
3+
0
4+
1
5+
2
6+
3

0 commit comments

Comments
 (0)