aboutsummaryrefslogtreecommitdiff
path: root/testdir/t.fun4
diff options
context:
space:
mode:
Diffstat (limited to 'testdir/t.fun4')
-rw-r--r--testdir/t.fun49
1 files changed, 9 insertions, 0 deletions
diff --git a/testdir/t.fun4 b/testdir/t.fun4
new file mode 100644
index 000000000000..474672b8f4e8
--- /dev/null
+++ b/testdir/t.fun4
@@ -0,0 +1,9 @@
+function f(a, n) {
+ for (i=1; i <= n; i++)
+ print " " a[i]
+}
+
+{ print
+ n = split($0, x)
+ f(x, n)
+}