aboutsummaryrefslogtreecommitdiffstats
path: root/test/profile3.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-02-13 19:56:21 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-02-13 19:56:21 +0200
commitc160d41490f752f55312f2de91cdd94cc9270141 (patch)
tree16d97a0a90b9465f76da3404d10e347d6f91faac /test/profile3.awk
parent050e7204af5086a851c22beb0829e9b9a163e8e1 (diff)
downloadegawk-c160d41490f752f55312f2de91cdd94cc9270141.tar.gz
egawk-c160d41490f752f55312f2de91cdd94cc9270141.tar.bz2
egawk-c160d41490f752f55312f2de91cdd94cc9270141.zip
Profile fix and test for it.
Diffstat (limited to 'test/profile3.awk')
-rw-r--r--test/profile3.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/profile3.awk b/test/profile3.awk
new file mode 100644
index 00000000..e519374e
--- /dev/null
+++ b/test/profile3.awk
@@ -0,0 +1,9 @@
+BEGIN {
+ the_func = "p"
+ print @the_func("Hello")
+}
+
+function p(str)
+{
+ print "! " str " !"
+}