aboutsummaryrefslogtreecommitdiffstats
path: root/test/nsindirect1.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/nsindirect1.awk')
-rw-r--r--test/nsindirect1.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/nsindirect1.awk b/test/nsindirect1.awk
new file mode 100644
index 00000000..d04863f5
--- /dev/null
+++ b/test/nsindirect1.awk
@@ -0,0 +1,13 @@
+@namespace "test"
+
+BEGIN {
+ bar = 3
+}
+
+@namespace "awk"
+
+BEGIN {
+ print "before change, direct =", test::bar, "indirect =", SYMTAB["test::bar"]
+ SYMTAB["test::bar"] = 4
+ print "after change, direct =", test::bar, "indirect =", SYMTAB["test::bar"]
+}