aboutsummaryrefslogtreecommitdiffstats
path: root/extension/testarrayparm.awk
diff options
context:
space:
mode:
Diffstat (limited to 'extension/testarrayparm.awk')
-rw-r--r--extension/testarrayparm.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/extension/testarrayparm.awk b/extension/testarrayparm.awk
new file mode 100644
index 00000000..08178f3e
--- /dev/null
+++ b/extension/testarrayparm.awk
@@ -0,0 +1,10 @@
+#! /bin/awk -f
+
+BEGIN {
+ extension("./arrayparm.so", "dlload")
+
+ mkarray(newvar, "hi", "hello")
+
+ for (i in newvar)
+ printf ("newvar[\"%s\"] = \"%s\"\n", i, newvar[i])
+}