aboutsummaryrefslogtreecommitdiffstats
path: root/test/arrdbg.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-18 06:01:31 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-18 06:01:31 +0300
commit76992be54568a1b4bfc853e0bd390ea64ecdf5fe (patch)
tree8b10a15eb4d1dac63a2041d125c2e700869a3736 /test/arrdbg.awk
parentad1eb35877e0495598c825194b1d061251528c2e (diff)
parent14d54162c7af9770389da382a888100dc52f9a25 (diff)
downloadegawk-76992be54568a1b4bfc853e0bd390ea64ecdf5fe.tar.gz
egawk-76992be54568a1b4bfc853e0bd390ea64ecdf5fe.tar.bz2
egawk-76992be54568a1b4bfc853e0bd390ea64ecdf5fe.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'test/arrdbg.awk')
-rw-r--r--test/arrdbg.awk17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/arrdbg.awk b/test/arrdbg.awk
new file mode 100644
index 00000000..951acb41
--- /dev/null
+++ b/test/arrdbg.awk
@@ -0,0 +1,17 @@
+function check(x, exptype, f) {
+ f[x]
+ printf "array_f subscript [%s]\n", x
+ printf "array_f subscript [%s]\n", x > okfile
+ adump(f, -1)
+ printf " array_func: %s_array_func\n", exptype > okfile
+}
+
+BEGIN {
+ check(3.0, "cint")
+ check(-3, "int")
+ check("3.0", "str")
+ split(" 3", f, "|") # create a maybe_num value
+ check(f[1], "str")
+ check("0", "cint")
+ check("-1", "int")
+}