aboutsummaryrefslogtreecommitdiffstats
path: root/test/typedregex3.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/typedregex3.awk')
-rw-r--r--test/typedregex3.awk11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/typedregex3.awk b/test/typedregex3.awk
new file mode 100644
index 00000000..ee6bcb69
--- /dev/null
+++ b/test/typedregex3.awk
@@ -0,0 +1,11 @@
+BEGIN {
+ a[1] = @/abc/
+ b[1][2][3] = @/xyz/
+ print typeof(a[1]), typeof(b[1][2][3])
+ print a[1], b[1][2][3]
+
+ a[1]++
+ b[1][2][3] ""
+ print typeof(a[1]), typeof(b[1][2][3])
+ print a[1], b[1][2][3]
+}