aa342b562daca14db4d4b4fd94aaf216a4ed722a
[platform/upstream/m4.git] / checks / 067.ifelse
1 dnl @ ../doc/m4.texinfo:2752: 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', `true')
11 dnl @result{}
12 ifelse(`foo', `foo', `true')
13 dnl @result{}true
14 define(`foo', `bar')
15 dnl @result{}
16 ifelse(foo, `bar', `true', `false')
17 dnl @result{}true
18 ifelse(foo, `foo', `true', `false')
19 dnl @result{}false