aboutsummaryrefslogtreecommitdiffstats
path: root/test/functab3.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/functab3.awk')
-rw-r--r--test/functab3.awk10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functab3.awk b/test/functab3.awk
new file mode 100644
index 00000000..98fa49b1
--- /dev/null
+++ b/test/functab3.awk
@@ -0,0 +1,10 @@
+function foo()
+{
+ print "foo!"
+}
+
+BEGIN {
+ x = FUNCTAB["foo"]
+ print "x =", x
+ @x()
+}