aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-11-10 16:42:12 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-11-11 07:42:40 -0800
commit40258cd29e86e9baa35600ada236ce6d7cedc429 (patch)
treeaf0a9a9e7f6db7d13b471f6f0eafb073cbe532e8
parent1a494ccfbea2b5fd3946d5ca2d829b2462ee5164 (diff)
downloadmeson-40258cd29e86e9baa35600ada236ce6d7cedc429.zip
meson-40258cd29e86e9baa35600ada236ce6d7cedc429.tar.gz
meson-40258cd29e86e9baa35600ada236ce6d7cedc429.tar.bz2
tests/frameeworks 8/flex: fix undefined functions
Some compilers don't have explicit errors for undefined functions enabled by default. Apple clang seems to.
-rw-r--r--test cases/frameworks/8 flex/lexer.l3
-rw-r--r--test cases/frameworks/8 flex/parser.y5
2 files changed, 8 insertions, 0 deletions
diff --git a/test cases/frameworks/8 flex/lexer.l b/test cases/frameworks/8 flex/lexer.l
index 85293b2..952eeea 100644
--- a/test cases/frameworks/8 flex/lexer.l
+++ b/test cases/frameworks/8 flex/lexer.l
@@ -1,6 +1,9 @@
%{
#include <stdlib.h>
#include "parser.tab.h"
+
+extern int yylex(void);
+extern int yyerror();
%}
%%
diff --git a/test cases/frameworks/8 flex/parser.y b/test cases/frameworks/8 flex/parser.y
index ff8754f..663f2f3 100644
--- a/test cases/frameworks/8 flex/parser.y
+++ b/test cases/frameworks/8 flex/parser.y
@@ -1,3 +1,8 @@
+%{
+extern int yylex(void);
+extern int yyerror();
+%}
+
%token BOOLEAN
%%