]> git.saurik.com Git - bison.git/blobdiff - tests/regression.at
(version): Update copyright year to 2004.
[bison.git] / tests / regression.at
index 1d0a5e148256ef9a509afec9cd04caf3c573e489..51495b897318d1b0069875d5bdfabc13c68402f9 100644 (file)
@@ -298,7 +298,6 @@ input.y:5.1-17: invalid directive: `%a-does-not-exist'
 input.y:6.1: invalid character: `%'
 input.y:6.2: invalid character: `-'
 input.y:7.1-8.0: missing `%}' at end of file
-input.y:7.1-8.0: syntax error, unexpected "%{...%}"
 ]])
 
 AT_CLEANUP
@@ -676,11 +675,10 @@ AT_CLEANUP
 m4_define([_AT_DATA_DANCER_Y],
 [AT_DATA_GRAMMAR([dancer.y],
 [%{
-AT_LALR1_CC_IF(
-[static int yylex (int *lval);],
+static int yylex (AT_LALR1_CC_IF([int *], [void]));
+AT_LALR1_CC_IF([],
 [#include <stdio.h>
-static void yyerror (const char *s);
-static int yylex ();])
+static void yyerror (const char *);])
 %}
 $1
 %token ARROW INVALID NUMBER STRING DATA
@@ -754,13 +752,14 @@ yyerror (const char *s)
 }])
 
 static int
-yylex (AT_LALR1_CC_IF([int *lval]))
+yylex (AT_LALR1_CC_IF([int *lval], [void]))
 [{
   static int toknum = 0;
   int tokens[] =
     {
       ':', -1
     };
+  ]AT_LALR1_CC_IF([*lval = 0; /* Pacify GCC.  */])[
   return tokens[toknum++];
 }]
 
@@ -784,7 +783,7 @@ AT_CHECK([bison -o dancer.c dancer.y])
 AT_LALR1_CC_IF([AT_COMPILE_CXX([dancer])],
                [AT_COMPILE([dancer])])
 AT_PARSER_CHECK([./dancer], 1, [],
-[syntax error, unexpected ':', expecting ARROW or INVALID or DATA or '<'
+[syntax error, unexpected ':'
 ])
 AT_BISON_OPTION_POPDEFS
 AT_CLEANUP