diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/debug/while.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/debug/while.scala b/tests/debug/while.scala new file mode 100644 index 000000000..0e5f8f8b0 --- /dev/null +++ b/tests/debug/while.scala @@ -0,0 +1,14 @@ +object Test { + + def main(args: Array[String]): Unit = { + var a = 1 + 2 + a = a + 3 + a = 4 + 5 // [break] [step: while] + + while (a * 8 < 100) { // [step: a += 1] + a += 1 // [step: while] [cont: print] + } + + print(a) // [break] [cont] + } +} |