From 267e90c0513218bc797f617191302a6b681ee71f Mon Sep 17 00:00:00 2001
From: Akim Demaille <demaille@gostai.com>
Date: Thu, 9 Feb 2012 10:04:32 +0100
Subject: [PATCH 4/7] tests: don't require locations uselessly.

	* tests/c++.at (Syntax error discarding no lookahead): Contrary to
	2.5, C++ parsers can work without locations.
---
 tests/c++.at |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/c++.at b/tests/c++.at
index b4218d3..d81a1fb 100644
--- a/tests/c++.at
+++ b/tests/c++.at
@@ -385,12 +385,11 @@ AT_DATA_GRAMMAR([[input.yy]],
 
 %code {
   #include <string>
-  int yylex (yy::parser::semantic_type *, yy::location *);
+  int yylex (yy::parser::semantic_type *);
   #define USE(Args)
 }
 
 %defines
-%locations
 %define parse.error verbose
 
 %nonassoc 'a' ;
@@ -420,14 +419,14 @@ start: 'b' consistent-error ;
 %%
 
 int
-yylex (yy::parser::semantic_type *, yy::location *)
+yylex (yy::parser::semantic_type *)
 {
   static char const *input = "aa";
   return *input++;
 }
 
 void
-yy::parser::error (const location_type &, const std::string &m)
+yy::parser::error (const std::string &m)
 {
   std::cerr << m << std::endl;
 }
-- 
1.7.9

