/[m4]/m4/tests/builtins.at
ViewVC logotype

Diff of /m4/tests/builtins.at

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by akim, Sat Oct 13 08:55:55 2001 UTC revision 1.8 by gary, Wed Jul 9 12:32:41 2003 UTC
# Line 20  AT_BANNER([Torturing builtins.]) Line 20  AT_BANNER([Torturing builtins.])
20    
21    
22  ## ------ ##  ## ------ ##
23    ## define ##
24    ## ------ ##
25    
26    AT_SETUP([[define]])
27    
28    AT_DATA([[define.m4]],
29    [[undefine(`macro')dnl
30    pushdef(`macro', `base value')dnl
31    pushdef(`macro', `hello, world')dnl
32    pushdef(`macro', `top value')dnl
33    define(`macro', `new value')dnl
34    macro.
35    popdef(`macro')dnl
36    macro.
37    popdef(`macro')dnl
38    macro.
39    ]])
40    
41    AT_CHECK_M4([define.m4], 0,
42    [[new value.
43    hello, world.
44    base value.
45    ]], [[m4: define.m4: 1: Warning: undefine: undefined name: macro
46    ]])
47    
48    AT_CHECK_M4([--traditional define.m4], 0,
49    [[new value.
50    macro.
51    macro.
52    ]], [[m4: define.m4: 1: Warning: undefine: undefined name: macro
53    m4: define.m4: 9: Warning: popdef: undefined name: macro
54    ]])
55    
56    AT_CLEANUP
57    
58    
59    
60    ## ------ ##
61  ## divert ##  ## divert ##
62  ## ------ ##  ## ------ ##
63    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26