summaryrefslogtreecommitdiff
path: root/test/lintold.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:49:57 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 14:49:57 +0300
commit6a2caf2157d87b4b582b2494bdd7d6a688dd0b1f (patch)
tree9a2862cc11be4832f188cfbdce175120ceba5024 /test/lintold.awk
parent315bd501ca696bc3e3c938b4604d8dac7a6f512f (diff)
downloadgawk-6a2caf2157d87b4b582b2494bdd7d6a688dd0b1f.tar.gz
Move to gawk-3.1.6.gawk-3.1.6
Diffstat (limited to 'test/lintold.awk')
-rw-r--r--test/lintold.awk21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/lintold.awk b/test/lintold.awk
new file mode 100644
index 00000000..61d12f2f
--- /dev/null
+++ b/test/lintold.awk
@@ -0,0 +1,21 @@
+# lintold.awk --- test --lint-old
+
+BEGIN {
+ a[1] = 1
+ for (i in a)
+ print a[i]
+ delete a[1]
+ if (2 in a)
+ a[2] **= 2;
+ if ((2,3) in a)
+ a[2,3] ^= 2 ** 3 ^ 15;
+}
+BEGIN {
+ FS = "ab"
+ foo = "\b\f\r"
+}
+END {
+}
+END {
+ print "done"
+}