aboutsummaryrefslogtreecommitdiffstats
path: root/testcases-iter
diff options
context:
space:
mode:
Diffstat (limited to 'testcases-iter')
-rw-r--r--testcases-iter15
1 files changed, 15 insertions, 0 deletions
diff --git a/testcases-iter b/testcases-iter
index 9ed1c25..54153d8 100644
--- a/testcases-iter
+++ b/testcases-iter
@@ -442,3 +442,18 @@ BEGIN {
:
-1
-1
+--
+21:
+$cppawk '
+#include <iter.h>
+
+BEGIN {
+ loop (range (x, 1, 11),
+ counting (oddc, x % 2 != 0),
+ counting (evenc, x % 2 == 0),
+ counting (negativec, x < 0))
+ ;
+ print oddc, evenc, negativec
+}'
+:
+6 5 0