summaryrefslogtreecommitdiff
path: root/t/yacc-cxx.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/yacc-cxx.sh')
-rw-r--r--t/yacc-cxx.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/yacc-cxx.sh b/t/yacc-cxx.sh
index 9dd9aabf7..33e73cbc0 100644
--- a/t/yacc-cxx.sh
+++ b/t/yacc-cxx.sh
@@ -43,6 +43,9 @@ END
cat > parse1.yy << 'END'
%{
+// Include C header to provide global symbols that flex assumes.
+// https://bugs.gnu.org/20031
+#include <stdlib.h>
// Valid C++, but deliberately invalid C.
#include <cstdio>
#include <cstdlib>