-# $OpenBSD: Makefile,v 1.5 2023/10/21 17:28:01 schwarze Exp $
+# $OpenBSD: Makefile,v 1.6 2023/10/22 16:54:19 schwarze Exp $
-REGRESS_TARGETS = roff man mdoc esc
-LINT_TARGETS = roff man mdoc
+REGRESS_TARGETS = roff man mdoc esc infrec
+LINT_TARGETS = roff man mdoc infrec
+SKIP_GROFF = infrec
.include <bsd.regress.mk>
--- /dev/null
+.\" $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
--- /dev/null
+ARGS-INFREC(1) General Commands Manual ARGS-INFREC(1)
+
+N\bNA\bAM\bME\bE
+ args-infrec - infinite recursion in macro argument expansion
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+ initial text prefixpostfix final text
+
+OpenBSD October 22, 2023 ARGS-INFREC(1)
--- /dev/null
+mandoc: infrec.in:9:1: ERROR: input stack limit exceeded, infinite loop?