summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-08-29 21:39:55 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-08-29 21:39:55 +0000
commit22ab1bc5d4d158aacd6d131fb6fd49d42ebff32e (patch)
tree00ee7999018ffd37e9593b4186ea7ee852673cf8 /regress
parent92a45ceee5fdefcbd3912e62cb683e48a6d9e966 (diff)
add regression test for \n(.$ and \\$*
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/mandoc/roff/nr/predef.in9
-rw-r--r--regress/usr.bin/mandoc/roff/nr/predef.out_ascii5
2 files changed, 12 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/nr/predef.in b/regress/usr.bin/mandoc/roff/nr/predef.in
index bf10a8aab53..3610340d3ed 100644
--- a/regress/usr.bin/mandoc/roff/nr/predef.in
+++ b/regress/usr.bin/mandoc/roff/nr/predef.in
@@ -1,7 +1,10 @@
-.TH NR-PREDEF 1 "February 4, 2014" OpenBSD
+.TH NR-PREDEF 1 "August 29, 2015" OpenBSD
.SH NAME
nr-predef \- pre-defined read-only integer number registers
.SH DESCRIPTION
+.de mym
+user defined macro with \\n(.$ arguments: \\$*
+..
.nf
.nr .A 111
.nr .g 111
@@ -9,9 +12,13 @@ nr-predef \- pre-defined read-only integer number registers
.nr .j 111
.nr .T 111
.nr .V 111
+.nr .$ 111
ascii mode: \n(.A
groff mode: \n(.g
horizontal resolution: \n(.H
adjustment mode: \n(.j
output device defined: \n(.T
vertical resolution: \n(.V
+.mym
+.mym one
+.mym one two
diff --git a/regress/usr.bin/mandoc/roff/nr/predef.out_ascii b/regress/usr.bin/mandoc/roff/nr/predef.out_ascii
index e92f7be6321..6973d296186 100644
--- a/regress/usr.bin/mandoc/roff/nr/predef.out_ascii
+++ b/regress/usr.bin/mandoc/roff/nr/predef.out_ascii
@@ -12,7 +12,10 @@ DDEESSCCRRIIPPTTIIOONN
adjustment mode: 0
output device defined: 1
vertical resolution: 40
+ user defined macro with 0 arguments:
+ user defined macro with 1 arguments: one
+ user defined macro with 2 arguments: one two
-OpenBSD February 4, 2014 NR-PREDEF(1)
+OpenBSD August 29, 2015 NR-PREDEF(1)