aboutsummaryrefslogtreecommitdiffstats
path: root/test/profile8.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-01-20 22:05:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2015-01-20 22:05:05 +0200
commit812d26bb6b672f3f5153c00e4edcb2377a723afd (patch)
tree3178af3ca22a20b07bd3ef9716d81df181f04761 /test/profile8.awk
parent128a3e884d9541ec5b96c02a19db38ac3c404bf1 (diff)
parent4c01db1833a02173c910d463eaed77ad6ed66195 (diff)
downloadegawk-812d26bb6b672f3f5153c00e4edcb2377a723afd.tar.gz
egawk-812d26bb6b672f3f5153c00e4edcb2377a723afd.tar.bz2
egawk-812d26bb6b672f3f5153c00e4edcb2377a723afd.zip
Merge branch 'master' into wasted-byte
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 }