summaryrefslogtreecommitdiffstats
path: root/regress/roff/args/infrec.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2023-10-22 16:57:24 +0000
committerIngo Schwarze <schwarze@openbsd.org>2023-10-22 16:57:24 +0000
commitfb097805fe26dca7c3ad431588133bb1968c69be (patch)
tree9018185a58e47dcb6f1ada8c80e4d430f43ca1a5 /regress/roff/args/infrec.in
parent9e6e090ca7544bf35064fd24b38a45248c31af7b (diff)
downloadmandoc-fb097805fe26dca7c3ad431588133bb1968c69be.tar.gz
new regression test for roff.c rev. 1.270:
infinite recursion in macro argument expansion
Diffstat (limited to 'regress/roff/args/infrec.in')
-rw-r--r--regress/roff/args/infrec.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/regress/roff/args/infrec.in b/regress/roff/args/infrec.in
new file mode 100644
index 00000000..5935404f
--- /dev/null
+++ b/regress/roff/args/infrec.in
@@ -0,0 +1,10 @@
+.\" $OpenBSD: infrec.in,v 1.1 2023/10/22 16:54:19 schwarze Exp $
+.TH ARGS-INFREC 1 "October 22, 2023"
+.SH NAME
+args-infrec - infinite recursion in macro argument expansion
+.SH DESCRIPTION
+.ds mys first word
+.ds mys \\*[mys] another word
+initial text
+.RB prefix \\*[mys] postfix
+final text