about summary refs log tree commit diff
path: root/Test/B03print.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/B03print.ztst')
-rw-r--r--Test/B03print.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index 5eb94a27e..4d21bdc6c 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -203,3 +203,11 @@
  printf -- '%s\n' str
 0:initial `--' ignored to satisfy POSIX
 >str
+
+ printf '%'
+1:nothing after % in format specifier
+?(eval):printf:1: %: invalid directive
+
+ printf $'%\0'
+1:explicit null after % in format specifier
+?(eval):printf:1: %: invalid directive