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. */