aboutsummaryrefslogtreecommitdiffstats
path: root/test/let1.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/let1.awk')
-rw-r--r--test/let1.awk14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/let1.awk b/test/let1.awk
index 413b6e1e..268222df 100644
--- a/test/let1.awk
+++ b/test/let1.awk
@@ -157,3 +157,17 @@ BEGIN {
@let (x = 1, y = 2) { print "b6", x, y }
@let (x = 1, y = 2, z = 3) { print "b6", x, y, z }
}
+
+function f6()
+{
+ @let (x = 1) { print "f6", x }
+ @let (x = 1, y = 2,) { print "f6", x, y }
+ @let (x = 1, y = 2, z = 3,) { print "f6", x, y, z }
+}
+
+BEGIN {
+ f6()
+ @let (x = 1) { print "b7", x }
+ @let (x = 1, y = 2,) { print "b7", x, y }
+ @let (x = 1, y = 2, z = 3,) { print "b7", x, y, z }
+}