aboutsummaryrefslogtreecommitdiffstats
path: root/test/printfchar.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/printfchar.awk')
-rw-r--r--test/printfchar.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/printfchar.awk b/test/printfchar.awk
new file mode 100644
index 00000000..9e703c31
--- /dev/null
+++ b/test/printfchar.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ x[65]
+ for (i in x) {
+ # i should be a string
+ printf "%c\n", i # should print 1st char of string
+ }
+}