Imported Upstream version 1.4.17
[platform/upstream/m4.git] / checks / 069.ifelse
1 dnl @ ../doc/m4.texi:2825: 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 ifelse(`foo', `bar', `third', `gnu', `gnats')
11 dnl @error{}m4:stdin:1: Warning: excess arguments to builtin `ifelse' ignored
12 dnl @result{}gnu
13 ifelse(`foo', `bar', `third', `gnu', `gnats', `sixth')
14 dnl @result{}
15 ifelse(`foo', `bar', `third', `gnu', `gnats', `sixth', `seventh')
16 dnl @result{}seventh
17 ifelse(`foo', `bar', `3', `gnu', `gnats', `6', `7', `8')
18 dnl @error{}m4:stdin:4: Warning: excess arguments to builtin `ifelse' ignored
19 dnl @result{}7