/[autoconf]/autoconf/tests/m4sugar.at
ViewVC logotype

Diff of /autoconf/tests/m4sugar.at

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

revision 1.23 by akim, Thu Aug 21 17:25:31 2003 UTC revision 1.24 by akim, Fri Aug 22 13:38:34 2003 UTC
# Line 42  AT_SETUP([[m4@&t@_warn]]) Line 42  AT_SETUP([[m4@&t@_warn]])
42  # warnings.  But maybe autom4te should handle that by itself?  # warnings.  But maybe autom4te should handle that by itself?
43    
44  AT_DATA_M4SUGAR([script.4s],  AT_DATA_M4SUGAR([script.4s],
45  [[m4_warn([obsolete],  [obsolete])  [[m4_init
46  m4_warn([cross],  [cross])  m4_defun([cross_warning],
47    [m4_warn([cross],  [cross])
48    ])
49    
50    m4_warn([obsolete],  [obsolete])
51    cross_warning
52  m4_warn([syntax], [syntax])  m4_warn([syntax], [syntax])
53  ]])  ]])
54    
55  AT_CHECK_M4SUGAR([-o-], 0, [],  AT_CHECK_M4SUGAR([-o-], 0, [],
56  [script.4s:3: warning: syntax  [script.4s:8: warning: syntax
57  ])  ])
58    
59  AT_CHECK_M4SUGAR([-o- -Wall -f], 0, [],  AT_CHECK_M4SUGAR([-o- -Wall -f], 0, [],
60  [script.4s:1: warning: obsolete  [script.4s:6: warning: obsolete
61  script.4s:2: warning: cross  script.4s:7: warning: cross
62  script.4s:3: warning: syntax  script.4s:4: cross_warning is expanded from...
63    script.4s:7: the top level
64    script.4s:8: warning: syntax
65  ])  ])
66    
67  AT_CHECK_M4SUGAR([-o- -Wnone,cross -f], 0, [],  AT_CHECK_M4SUGAR([-o- -Wnone,cross -f], 0, [],
68  [script.4s:2: warning: cross  [script.4s:7: warning: cross
69    script.4s:4: cross_warning is expanded from...
70    script.4s:7: the top level
71  ])  ])
72    
73  AT_CHECK_M4SUGAR([-o- -Wnone,cross,error -f], 1, [],  AT_CHECK_M4SUGAR([-o- -Wnone,cross,error -f], 1, [],
74  [[script.4s:2: error: cross  [[script.4s:7: warning: cross
75  script.4s:2: the top level  script.4s:4: cross_warning is expanded from...
76  autom4te: m4 failed with exit status: 1  script.4s:7: the top level
77  ]])  ]])
78    
79  AT_CLEANUP  AT_CLEANUP

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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