aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/let1.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/let1.awk b/test/let1.awk
index 94a1a681..431fb8b8 100644
--- a/test/let1.awk
+++ b/test/let1.awk
@@ -38,6 +38,13 @@ BEGIN {
print "b3", l3 "-" x
}
+# test re-use of scalar var as array
+
+BEGIN {
+ @let (i = 3) { }
+ @let (a) { a[0] = 42 }
+}
+
# test clearing uninitialized variables
function f4()