~ubuntu-branches/ubuntu/gutsy/m4/gutsy

« back to all changes in this revision

Viewing changes to checks/053.foreach

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2006-11-29 16:53:44 UTC
  • Revision ID: james.westby@ubuntu.com-20061129165344-0qimyyyhh135a7mf
Tags: 1.4.8-1
New upstream release. Lots of fixes, see the NEWS file for details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl @ ../doc/m4.texinfo:2375: Origin of test
 
2
dnl @ Copyright (C) 2006 Free Software Foundation
 
3
dnl @ This file is free software; the Free Software Foundation
 
4
dnl @ gives unlimited permission to copy and/or distribute it
 
5
dnl @ with or without modifications, as long as this notice
 
6
dnl @ is preserved.
 
7
define(`a', `1')define(`b', `2')define(`c', `3')
 
8
dnl @result{}
 
9
include(`foreach.m4')
 
10
dnl @result{}
 
11
include(`foreachq.m4')
 
12
dnl @result{}
 
13
foreach(`x', `(``a'', ``(b'', ``c)'')', `x
 
14
')
 
15
dnl @result{}1
 
16
dnl @result{}(2)1
 
17
dnl @result{}
 
18
dnl @result{}, x
 
19
dnl @result{})
 
20
foreachq(`x', ```a'', ``(b'', ``c)''', `x
 
21
')dnl
 
22
dnl @result{}a
 
23
dnl @result{}(b
 
24
dnl @result{}c)