From: Paul Eggert Date: Thu, 13 Mar 2003 07:03:17 +0000 (+0000) Subject: (Torturing the Scanner): Test the scanner on X-Git-Tag: BISON-2_0~357 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/0baf7c50ed2f4e110afbdefb9ef1d60e935d708d?hp=a93df6bad3da5cd0ef031582c5d53c169261b292 (Torturing the Scanner): Test the scanner on an empty input file, which was Tim Van Holder's test case. --- 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. */