summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/pdftex/tests/02-pdfmatch')
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile10
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex22
2 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile
new file mode 100644
index 00000000000..06943375d0f
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile
@@ -0,0 +1,10 @@
+# $Id: Makefile 758 2016-06-12 16:54:10Z karl $
+# Public domain.
+
+include ../Common.mak
+
+testpdfmatch:
+ $(prog) test-pdfmatch.tex
+
+clean:
+ $(clean)
diff --git a/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex
new file mode 100644
index 00000000000..f6d55fe587c
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex
@@ -0,0 +1,22 @@
+% $Id: test-pdfmatch.tex 759 2016-06-12 18:11:28Z karl $
+% This file public domain. Bug report of \pdflastmatch crash:
+% http://tug.org/pipermail/tex-live/2016-June/038664.html
+%
+\catcode`\{=1 \catcode`\}=2 \catcode`^=7 \newlinechar=`^^J
+%
+\message{^^Jpdflastmatch0 before any match: \pdflastmatch0}
+\message{^^J}%
+%
+\message{^^Jmatch a to b: \pdfmatch{a}{b}}
+\message{^^J}%
+\message{pdflastmatch0: \pdflastmatch0}
+\message{^^J}%
+%
+\message{^^Jmatch example: \pdfmatch subcount 3 {ab(cd)*ef(gh)(ij)}{abefghij}}
+\message{^^J}%
+\message{pdflastmatch0 (0->abefghij): \pdflastmatch0 ^^J}
+\message{pdflastmatch1 (-1->): \pdflastmatch1 ^^J}
+\message{pdflastmatch2 (4->gh): \pdflastmatch2 ^^J}
+\message{pdflastmatch3 (-1->): \pdflastmatch3}
+\message{^^J}%
+\end