summaryrefslogtreecommitdiff
path: root/test/badbuild.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-12-24 20:28:14 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-12-24 20:28:14 +0200
commit969ee3cbf2255a508eca008c0b25d8a1f09bdeb3 (patch)
tree0b84e4b61613a2f07bc11b243120d2e57a66bd84 /test/badbuild.awk
parent0585c4e6f3d68846d56fe766675099b539e2cba9 (diff)
downloadgawk-969ee3cbf2255a508eca008c0b25d8a1f09bdeb3.tar.gz
New test for bad builds (with non-bison).
Diffstat (limited to 'test/badbuild.awk')
-rw-r--r--test/badbuild.awk6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/badbuild.awk b/test/badbuild.awk
new file mode 100644
index 00000000..12a6caeb
--- /dev/null
+++ b/test/badbuild.awk
@@ -0,0 +1,6 @@
+$1 == $2 == $3 {
+ print "Gawk was built incorrectly."
+ print "Use bison, not byacc or something else!"
+ print "(Really, why aren't you using the awkgram.c in the distribution?)"
+ exit 42
+}