aboutsummaryrefslogtreecommitdiffstats
path: root/test/typedregex3.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-06-30 19:48:42 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-06-30 19:48:42 +0300
commitca263568302b69ce65487753893161aa4d9a6185 (patch)
tree83b8d9ca22a6d6578ba1b97b66346824891a780b /test/typedregex3.awk
parent49e523a61a7092a890622e5df18d3503c071d889 (diff)
parent2518fa8051dc811cd44f7b0ade7395b0504efcb4 (diff)
downloadegawk-ca263568302b69ce65487753893161aa4d9a6185.tar.gz
egawk-ca263568302b69ce65487753893161aa4d9a6185.tar.bz2
egawk-ca263568302b69ce65487753893161aa4d9a6185.zip
Merge branch 'master' into feature/cmake
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]
+}