]> git.saurik.com Git - bison.git/blobdiff - tests/input.at
(Torturing the Scanner): Test the scanner on
[bison.git] / tests / input.at
index 4cd6e155208df01f08fbf59f29dc17d1cd1cb908..43e6c7e9582b0cbf2956b36c97677d582bde0b1e 100644 (file)
@@ -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. */