Skip to content

Commit 3a47efd

Browse files
committed
update test
1 parent 09899f9 commit 3a47efd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/run-bootstrapped/i6710.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,12 @@ object Test {
1212
assert(!(f < 0.0))
1313
assert(!(d > 0.0))
1414
assert(!(d < 0.0))
15+
16+
// loop forever before the fix
17+
var x = Double.NaN
18+
while(x < 10.0) { x = x + 1; println(x) }
19+
while(x > 10.0) { x = x + 1; println(x) }
20+
do { x = x + 1; println(x) } while(x < 10.0)
21+
do { x = x + 1; println(x) } while(x > 10.0)
1522
}
1623
}

0 commit comments

Comments
 (0)