summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/subslash.awk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/awk/test/subslash.awk')
-rw-r--r--contrib/awk/test/subslash.awk6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/awk/test/subslash.awk b/contrib/awk/test/subslash.awk
new file mode 100644
index 0000000..87ab029
--- /dev/null
+++ b/contrib/awk/test/subslash.awk
@@ -0,0 +1,6 @@
+BEGIN {
+ i = 2
+ a[i] = 5
+ a[i] /= 2
+ printf "a[%s] = %f\n", i, a[i]
+}
OpenPOWER on IntegriCloud