Skip to content
Snippets Groups Projects
Commit d906936e authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Add test for flex bug as part of make, and point them to README.flex.

parent 650638c4
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.12 1997/04/15 18:17:43 scrappy Exp $ # $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.13 1997/05/14 03:32:16 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -30,6 +30,7 @@ all: ...@@ -30,6 +30,7 @@ all:
false ;\ false ;\
else true;\ else true;\
fi fi
$(MAKE) -C lextest all
$(MAKE) -C utils all $(MAKE) -C utils all
$(MAKE) -C backend all $(MAKE) -C backend all
$(MAKE) -C libpq all $(MAKE) -C libpq all
......
#
# Makefile - tests for 2.5.3 flex bug
#
#
lextest : lextest.c scan.l
$(LEX) scan.l
$(CC) -c lex.yy.c
$(CC) -c lextest.c
$(CC) -o lextest lex.yy.o lextest.o
@echo "If this fails, flex is broken" | lextest || echo "You have a buggy version of flex. Read doc/README.flex for a fix."
clean:
rm -f lextest lex.yy.c lex.yy.o lextest.o
main()
{
yylex();
return;
}
yywrap()
{
return 1;
};
/*
This should work, but non-patched flex 2.5.3 fails because input()
doesn't return EOF
Bruce Momjian <root@candle.pha.pa.us>
*/
%%
. {
while (input() != EOF)
;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment