summaryrefslogtreecommitdiff
path: root/test/profile3.ok
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.ok
parent050e7204af5086a851c22beb0829e9b9a163e8e1 (diff)
downloadgawk-c160d41490f752f55312f2de91cdd94cc9270141.tar.gz
Profile fix and test for it.
Diffstat (limited to 'test/profile3.ok')
-rw-r--r--test/profile3.ok14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/profile3.ok b/test/profile3.ok
new file mode 100644
index 00000000..50172c48
--- /dev/null
+++ b/test/profile3.ok
@@ -0,0 +1,14 @@
+ # BEGIN block(s)
+
+ BEGIN {
+ 1 the_func = "p"
+ 1 print @the_func("Hello")
+ }
+
+
+ # Functions, listed alphabetically
+
+ 1 function p(str)
+ {
+ 1 print "! " str " !"
+ }