aboutsummaryrefslogtreecommitdiffstats
path: root/test/typeof3.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/typeof3.awk')
-rw-r--r--test/typeof3.awk19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/typeof3.awk b/test/typeof3.awk
new file mode 100644
index 00000000..d148f373
--- /dev/null
+++ b/test/typeof3.awk
@@ -0,0 +1,19 @@
+BEGIN {
+ x = @/xx/
+ print typeof(x)
+ print x
+}
+
+# this set may not really be needed for the test
+BEGIN {
+ x = 4
+ print typeof(@/xxx/)
+ print typeof(3)
+ print x
+}
+
+BEGIN {
+ print typeof(x)
+ print typeof(a[1])
+ a[1][2] # fatals on this
+}