summaryrefslogtreecommitdiff
path: root/checks/181.format
diff options
context:
space:
mode:
Diffstat (limited to 'checks/181.format')
-rw-r--r--checks/181.format24
1 files changed, 24 insertions, 0 deletions
diff --git a/checks/181.format b/checks/181.format
new file mode 100644
index 0000000..5228cc9
--- /dev/null
+++ b/checks/181.format
@@ -0,0 +1,24 @@
+dnl @ ../doc/m4.texinfo:6073: Origin of test
+dnl @ expected status: 0
+dnl @ extra options:
+dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
+dnl @ Foundation, Inc.
+dnl @ This file is free software; the Free Software Foundation
+dnl @ gives unlimited permission to copy and/or distribute it
+dnl @ with or without modifications, as long as this notice
+dnl @ is preserved.
+include(`forloop.m4')
+dnl @result{}
+forloop(`i', `1', `10', `format(`%6d squared is %10d
+', i, eval(i**2))')
+dnl @result{} 1 squared is 1
+dnl @result{} 2 squared is 4
+dnl @result{} 3 squared is 9
+dnl @result{} 4 squared is 16
+dnl @result{} 5 squared is 25
+dnl @result{} 6 squared is 36
+dnl @result{} 7 squared is 49
+dnl @result{} 8 squared is 64
+dnl @result{} 9 squared is 81
+dnl @result{} 10 squared is 100
+dnl @result{}