regression test for roff.c rev. 1.269:
authorschwarze <schwarze@openbsd.org>
Sat, 21 Oct 2023 17:28:01 +0000 (17:28 +0000)
committerschwarze <schwarze@openbsd.org>
Sat, 21 Oct 2023 17:28:01 +0000 (17:28 +0000)
recursive delayed expansion of escape sequences in macro arguments

regress/usr.bin/mandoc/roff/args/Makefile
regress/usr.bin/mandoc/roff/args/esc.in [new file with mode: 0644]
regress/usr.bin/mandoc/roff/args/esc.out_ascii [new file with mode: 0644]

index 3d756c9..c1f0901 100644 (file)
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.4 2014/07/06 19:08:57 schwarze Exp $
+# $OpenBSD: Makefile,v 1.5 2023/10/21 17:28:01 schwarze Exp $
 
-REGRESS_TARGETS = roff man mdoc
+REGRESS_TARGETS = roff man mdoc esc
 LINT_TARGETS   = roff man mdoc
 
 .include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/roff/args/esc.in b/regress/usr.bin/mandoc/roff/args/esc.in
new file mode 100644 (file)
index 0000000..20951dc
--- /dev/null
@@ -0,0 +1,8 @@
+.\" $OpenBSD: esc.in,v 1.1 2023/10/21 17:28:01 schwarze Exp $
+.TH ARGS-ESC 1 "October 21, 2023"
+.SH NAME
+args-esc - delayed escape sequence expansion in macro arguments
+.SH DESCRIPTION
+.ds inner content
+.ds outer \\*[inner]
+.B \\*[outer]
diff --git a/regress/usr.bin/mandoc/roff/args/esc.out_ascii b/regress/usr.bin/mandoc/roff/args/esc.out_ascii
new file mode 100644 (file)
index 0000000..41c4cc9
--- /dev/null
@@ -0,0 +1,9 @@
+ARGS-ESC(1)                 General Commands Manual                ARGS-ESC(1)
+
+N\bNA\bAM\bME\bE
+       args-esc - delayed escape sequence expansion in macro arguments
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+       c\bco\bon\bnt\bte\ben\bnt\bt
+
+OpenBSD                        October 21, 2023                    ARGS-ESC(1)