From 5432b2b83aebb139324cf44d1ebd4a88a7c85e39 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 21 Aug 2014 09:59:57 +0200 Subject: fixes recently introduced regression --- tests/controlflow/tbreak.nim | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests/controlflow/tbreak.nim') diff --git a/tests/controlflow/tbreak.nim b/tests/controlflow/tbreak.nim index 3d6bb25f0..7deab4caf 100644 --- a/tests/controlflow/tbreak.nim +++ b/tests/controlflow/tbreak.nim @@ -1,5 +1,9 @@ discard """ - output: '''10''' + output: '''10 +true true +true false +false true +false false''' """ var @@ -31,3 +35,10 @@ iterator permutations: int = for p in permutations(): break +# regression: +proc main = + for x in [true, false]: + for y in [true, false]: + echo x, " ", y + +main() -- cgit 1.4.1-2-gfad0