bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests: check the use of dashes and periods in symbols.


From: Joel E. Denny
Subject: Re: [PATCH] tests: check the use of dashes and periods in symbols.
Date: Wed, 29 Apr 2009 20:59:47 -0400 (EDT)

On Tue, 21 Apr 2009, Akim Demaille wrote:

>       * tests/input.at (Symbol): New test group.

I cherry picked this to branch-2.5.

I pushed the following to both branch-2.5 and master.

>From 0b59345789e88b34ec7e3a68b99d6fbd368cb798 Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Wed, 29 Apr 2009 20:50:01 -0400
Subject: [PATCH] Pacify ./configure --enable-gcc-warnings.

* tests/input.at (Symbols): Prototype yyerror and yylex.

diff --git a/tests/input.at b/tests/input.at
index 05ded40..96ba0fc 100644
--- a/tests/input.at
+++ b/tests/input.at
@@ -629,6 +629,10 @@ AT_DATA_GRAMMAR([input.y],
 %token WITHOUT_DASH "WITHOUT-DASH"
 %token WITH.PERIOD
 %token WITHOUT_PERIOD "WITHOUT.PERIOD"
+%code {
+  void yyerror (char const *);
+  int yylex (void);
+}
 %%
 start: with-dash without_dash with.period without_period;
 with-dash: WITH-DASH;
@@ -641,13 +645,13 @@ without_period: "WITHOUT.PERIOD";
 # POSIX Yacc accept periods, but not dashes.
 AT_BISON_CHECK([--yacc input.y], [1], [],
 [[input.y:9.8-16: POSIX Yacc forbids dashes in symbol names: WITH-DASH
-input.y:14.8-16: POSIX Yacc forbids dashes in symbol names: with-dash
+input.y:18.8-16: POSIX Yacc forbids dashes in symbol names: with-dash
 ]])
 
 # So warn about them.
 AT_BISON_CHECK([-Wyacc input.y], [], [],
 [[input.y:9.8-16: warning: POSIX Yacc forbids dashes in symbol names: WITH-DASH
-input.y:14.8-16: warning: POSIX Yacc forbids dashes in symbol names: with-dash
+input.y:18.8-16: warning: POSIX Yacc forbids dashes in symbol names: with-dash
 ]])
 
 # Dashes are fine for GNU Bison.
-- 
1.5.4.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]