summaryrefslogtreecommitdiff
path: root/test/lintold.awk
diff options
context:
space:
mode:
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"
+}