summaryrefslogtreecommitdiffstats
path: root/usr.bin/yacc/tests/code_error.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/yacc/tests/code_error.y')
-rw-r--r--usr.bin/yacc/tests/code_error.y36
1 files changed, 0 insertions, 36 deletions
diff --git a/usr.bin/yacc/tests/code_error.y b/usr.bin/yacc/tests/code_error.y
deleted file mode 100644
index bb77156..0000000
--- a/usr.bin/yacc/tests/code_error.y
+++ /dev/null
@@ -1,36 +0,0 @@
-%{
-
-#ifdef YYBISON
-int yylex(void);
-static void yyerror(const char *);
-#endif
-
-%}
-%%
-S: error
-%%
-
-#include <stdio.h>
-
-#ifdef YYBYACC
-extern int YYLEX_DECL();
-#endif
-
-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);
-}
OpenPOWER on IntegriCloud