aboutsummaryrefslogtreecommitdiffstats
path: root/test/stupid1.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/stupid1.awk')
-rw-r--r--test/stupid1.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/stupid1.awk b/test/stupid1.awk
new file mode 100644
index 00000000..9881ac6a
--- /dev/null
+++ b/test/stupid1.awk
@@ -0,0 +1,13 @@
+BEGIN {
+ abc("varname")
+ varname
+}
+
+func abc(n)
+{
+ if (n in SYMTAB) {
+ print "before"
+ is = SYMTAB[n]
+ print "after"
+ }
+}