aboutsummaryrefslogtreecommitdiffstats
path: root/test/functab2.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-10-04 12:04:34 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-10-04 12:04:34 +0200
commit81896b422307105edb9908958bbedd09967d9a05 (patch)
tree89421f3e15278d3d6a6bbd15066465e0bc62a2fd /test/functab2.awk
parent3d9b832439afeb1b05c60831e0865df585dc55ac (diff)
downloadegawk-81896b422307105edb9908958bbedd09967d9a05.tar.gz
egawk-81896b422307105edb9908958bbedd09967d9a05.tar.bz2
egawk-81896b422307105edb9908958bbedd09967d9a05.zip
Add tests for SYMTAB and FUNCTAB.
Diffstat (limited to 'test/functab2.awk')
-rw-r--r--test/functab2.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functab2.awk b/test/functab2.awk
new file mode 100644
index 00000000..9a07dfc3
--- /dev/null
+++ b/test/functab2.awk
@@ -0,0 +1,8 @@
+function foo()
+{
+ print "foo!"
+}
+
+BEGIN {
+ FUNCTAB["a"] = "something"
+}