/[bison]/bison/tests/calc.at
ViewVC logotype

Diff of /bison/tests/calc.at

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

revision 1.10 by akim, Fri Nov 2 15:27:11 2001 UTC revision 1.11 by akim, Wed Nov 14 15:20:47 2001 UTC
# Line 338  AT_CHECK([bison calc.y -o calc.c m4_bpat Line 338  AT_CHECK([bison calc.y -o calc.c m4_bpat
338  # Maybe some day we will have proper Autoconf macros to disable these  # Maybe some day we will have proper Autoconf macros to disable these
339  # warnings, but this place is not the right one for that.  # warnings, but this place is not the right one for that.
340  # So let's keep only GCC warnings, which we know are sane.  # So let's keep only GCC warnings, which we know are sane.
341  AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [stderr])  # Well, that's only part of the story: some assemblers issue warnings
342  AT_CHECK([if test "$GCC" = yes; then cat stderr; else true; fi])  # which can be totally useless, and actually polluting.  It seems that
343    # the best bet be to completely ignore stderr, but to pass -Werror
344    # to GCC.
345    if test "$GCC" = yes; then
346      CFLAGS="$CFLAGS -Werror"
347    fi
348    AT_CHECK([$CC $CFLAGS $CPPFLAGS calc.c -o calc], 0, [], [ignore])
349    
350  # Test the priorities.  # Test the priorities.
351  _AT_CHECK_CALC([$1],  _AT_CHECK_CALC([$1],
# Line 377  _AT_CHECK_CALC_ERROR([$1], Line 383  _AT_CHECK_CALC_ERROR([$1],
383                       [2.0:2.1],                       [2.0:2.1],
384                       [unexpected `'+''])                       [unexpected `'+''])
385    
386  AT_CLEANUP(calc calc.c calc.h calc.output)  AT_CLEANUP
387  ])# AT_CHECK_CALC  ])# AT_CHECK_CALC
388    
389    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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