5228cc97c80d40f3282aa0e34e974e14674d082d
[platform/upstream/m4.git] / checks / 181.format
1 dnl @ ../doc/m4.texinfo:6073: Origin of test
2 dnl @ expected status: 0
3 dnl @ extra options: 
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
5 dnl @ Foundation, Inc.
6 dnl @ This file is free software; the Free Software Foundation
7 dnl @ gives unlimited permission to copy and/or distribute it
8 dnl @ with or without modifications, as long as this notice
9 dnl @ is preserved.
10 include(`forloop.m4')
11 dnl @result{}
12 forloop(`i', `1', `10', `format(`%6d squared is %10d
13 ', i, eval(i**2))')
14 dnl @result{}     1 squared is          1
15 dnl @result{}     2 squared is          4
16 dnl @result{}     3 squared is          9
17 dnl @result{}     4 squared is         16
18 dnl @result{}     5 squared is         25
19 dnl @result{}     6 squared is         36
20 dnl @result{}     7 squared is         49
21 dnl @result{}     8 squared is         64
22 dnl @result{}     9 squared is         81
23 dnl @result{}    10 squared is        100
24 dnl @result{}