aboutsummaryrefslogtreecommitdiffstats
path: root/test/profile8.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-01-16 13:55:10 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-01-16 13:55:10 +0200
commit85699a5cba88f4ee910e2c3ef42b5cc165102b51 (patch)
tree0c30408d16fae795c48a59d2869d57c4b45ab5fd /test/profile8.awk
parent28f563a6f54c8ea9c63537356966508c4685b538 (diff)
downloadegawk-85699a5cba88f4ee910e2c3ef42b5cc165102b51.tar.gz
egawk-85699a5cba88f4ee910e2c3ef42b5cc165102b51.tar.bz2
egawk-85699a5cba88f4ee910e2c3ef42b5cc165102b51.zip
Bug fix in pretty-printing comments and test case.
Diffstat (limited to 'test/profile8.awk')
-rw-r--r--test/profile8.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/profile8.awk b/test/profile8.awk
new file mode 100644
index 00000000..16252cea
--- /dev/null
+++ b/test/profile8.awk
@@ -0,0 +1,9 @@
+# Some
+# header
+# comments
+
+# Add up
+{ sum += $1 }
+
+# Print sum
+END { print sum }