summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/prt1eval.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/prt1eval.awk')
-rw-r--r--contrib/awk/test/prt1eval.awk6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/awk/test/prt1eval.awk b/contrib/awk/test/prt1eval.awk
new file mode 100644
index 0000000..4ecd368
--- /dev/null
+++ b/contrib/awk/test/prt1eval.awk
@@ -0,0 +1,6 @@
+function tst () {
+ sum += 1
+ return sum
+}
+
+BEGIN { OFMT = "%.0f" ; print tst() }
OpenPOWER on IntegriCloud