diff --git a/src/lextest/Makefile b/src/lextest/Makefile
deleted file mode 100644
index b466704a076..00000000000
--- a/src/lextest/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# Makefile - test for 2.5.3 flex bug
-# Bruce Momjian 5/14/97
-#
-SRCDIR= ../
-include ../Makefile.global
-
-.DEFAULT all : lextest
-
-install:
-
-depend:
-
-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 || rm -f lextest
-
-clean:
-	rm -f lextest$(X) lex.yy.c lex.yy.o lextest.o
-
-dep:
diff --git a/src/lextest/lextest.c b/src/lextest/lextest.c
deleted file mode 100644
index ccd8feb2b35..00000000000
--- a/src/lextest/lextest.c
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-** lextest.c
-**
-** tests for flex 2.5.3 bug
-*/
-
-int
-main()
-{
-	yylex();
-	return 0;
-}
-
-int
-yywrap()
-{
-	return 1;
-};
diff --git a/src/lextest/scan.l b/src/lextest/scan.l
deleted file mode 100644
index 27af17e804a..00000000000
--- a/src/lextest/scan.l
+++ /dev/null
@@ -1,13 +0,0 @@
-%{
-/*
-		This should work, but non-patched flex 2.5.3 fails because input()
-		doesn't return EOF or '\0'
-		Bruce Momjian <root@candle.pha.pa.us>
-*/
-%}
-%%
-.		{
-			int ch;
-			while ((ch = input()) != EOF && ch != '\0')
-				;
-		}