Skip to content

Commit 722dc89

Browse files
jemcSeanTAllen
authored andcommitted
Add minimal test case for issue ponylang#1222, solved by ponylang#1232. (ponylang#1233)
1 parent 4f0eb0d commit 722dc89

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

minimal-cases/issue-1222/1222.pony

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
use "collections"
2+
3+
actor Main
4+
new create(env: Env) =>
5+
var list = List[I32]
6+
7+
while list.size() < 2 do
8+
env.out.print("could be infinite loop if the for loop is optimized out")
9+
10+
for d in Range[I32](0, 2) do
11+
env.out.print("running for loop...")
12+
list.push(d)
13+
end
14+
end
15+
16+
env.out.print("finished!")

0 commit comments

Comments
 (0)