summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2023-10-21 17:28:02 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2023-10-21 17:28:02 +0000
commita93ca7580d181fc41ee0a5f7899cd281fa2ba37a (patch)
tree0a6ba4cca04478ba6c257d1fb1a0c61d6f3de60e /regress
parentf7abc1c8fb4c3df68e013620b5a78d60c638c38b (diff)
regression test for roff.c rev. 1.269:
recursive delayed expansion of escape sequences in macro arguments
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/roff/args/Makefile4
-rw-r--r--regress/usr.bin/mandoc/roff/args/esc.in8
-rw-r--r--regress/usr.bin/mandoc/roff/args/esc.out_ascii9
3 files changed, 19 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/args/Makefile b/regress/usr.bin/mandoc/roff/args/Makefile
index 3d756c97ee6..c1f0901ebbc 100644
--- a/regress/usr.bin/mandoc/roff/args/Makefile
+++ b/regress/usr.bin/mandoc/roff/args/Makefile
@@ -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
index 00000000000..20951dcdf82
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/args/esc.in
@@ -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
index 00000000000..41c4cc99783
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/args/esc.out_ascii
@@ -0,0 +1,9 @@
+ARGS-ESC(1) General Commands Manual ARGS-ESC(1)
+
+NNAAMMEE
+ args-esc - delayed escape sequence expansion in macro arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ ccoonntteenntt
+
+OpenBSD October 21, 2023 ARGS-ESC(1)