1 dnl @ ../doc/m4.texinfo:3295: Origin of test
2 dnl @ expected status: 0
4 dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
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
12 foreach(`x', (foo, bar, foobar), `Word was: x
14 dnl @result{}Word was: foo
15 dnl @result{}Word was: bar
16 dnl @result{}Word was: foobar
17 include(`foreachq.m4')
19 foreachq(`x', `foo, bar, foobar', `Word was: x
21 dnl @result{}Word was: foo
22 dnl @result{}Word was: bar
23 dnl @result{}Word was: foobar