From: xchaos Date: Sun, 21 Sep 2008 20:27:55 +0000 (+0000) Subject: more tests of repeat() { } macro X-Git-Url: http://git.harvie.cz/?p=svn%2FCll1h%2F.git;a=commitdiff_plain;h=d306de9aa961693bd18f9c284cd9407819dd85ec more tests of repeat() { } macro git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@89 4bb87942-c103-4e5a-b51c-0ebff58f8515 --- 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."); } }