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