From d306de9aa961693bd18f9c284cd9407819dd85ec Mon Sep 17 00:00:00 2001 From: xchaos Date: Sun, 21 Sep 2008 20:27:55 +0000 Subject: [PATCH] more tests of repeat() { } macro git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@89 4bb87942-c103-4e5a-b51c-0ebff58f8515 --- demos/repeat.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/demos/repeat.c b/demos/repeat.c index b6229e9..53ddf6a 100644 --- a/demos/repeat.c +++ b/demos/repeat.c @@ -14,6 +14,18 @@ program { printf("[doing this %d times] ",i); } + repeat(0) + { + printf("[doing this 0 times] ",i); + } + repeat(-1) + { + printf("[doing this -1 times] ",i); + } + repeat(1) + { + printf("[doing this 1 times] ",i); + } print("... finished."); } } -- 2.30.2