From 0baf7c50ed2f4e110afbdefb9ef1d60e935d708d Mon Sep 17 00:00:00 2001 From: Paul Eggert <eggert@cs.ucla.edu> Date: Thu, 13 Mar 2003 07:03:17 +0000 Subject: [PATCH] (Torturing the Scanner): Test the scanner on an empty input file, which was Tim Van Holder's test case. --- tests/input.at | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/input.at b/tests/input.at index 4cd6e155..43e6c7e9 100644 --- a/tests/input.at +++ b/tests/input.at @@ -92,6 +92,13 @@ AT_CLEANUP AT_SETUP([Torturing the Scanner]) + +AT_DATA([input.y], []) +AT_CHECK([bison input.y], [1], [], +[[input.y:1.1: syntax error, unexpected "end of file" +]]) + + AT_DATA_GRAMMAR([input.y], [[%{ /* This is seen in GCC: a %{ and %} in middle of a comment. */ -- 2.47.2