diff options
Diffstat (limited to 'usr.bin/yacc/tests/error.y')
-rw-r--r-- | usr.bin/yacc/tests/error.y | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/usr.bin/yacc/tests/error.y b/usr.bin/yacc/tests/error.y deleted file mode 100644 index 673c68d..0000000 --- a/usr.bin/yacc/tests/error.y +++ /dev/null @@ -1,28 +0,0 @@ -%{ -int yylex(void); -static void yyerror(const char *); -%} -%% -S: error -%% - -#include <stdio.h> - -int -main(void) -{ - printf("yyparse() = %d\n", yyparse()); - return 0; -} - -int -yylex(void) -{ - return -1; -} - -static void -yyerror(const char* s) -{ - printf("%s\n", s); -} |