Imported Upstream version 1.4.16
[platform/upstream/m4.git] / checks / 046.undefine
1 dnl @ ../doc/m4.texinfo:2173: 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 foo bar blah
11 dnl @result{}foo bar blah
12 define(`foo', `some')define(`bar', `other')define(`blah', `text')
13 dnl @result{}
14 foo bar blah
15 dnl @result{}some other text
16 undefine(`foo')
17 dnl @result{}
18 foo bar blah
19 dnl @result{}foo other text
20 undefine(`bar', `blah')
21 dnl @result{}
22 foo bar blah
23 dnl @result{}foo bar blah