aboutsummaryrefslogtreecommitdiffstats
path: root/test/arryref4.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/arryref4.awk')
-rw-r--r--test/arryref4.awk17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/arryref4.awk b/test/arryref4.awk
new file mode 100644
index 00000000..072eade6
--- /dev/null
+++ b/test/arryref4.awk
@@ -0,0 +1,17 @@
+BEGIN {
+ foo(a)
+
+ print a
+}
+
+function foo(b)
+{
+ a = "global"
+ b[2] = "local"
+# bar(b)
+}
+
+function bar(c)
+{
+ c = 12
+}