summaryrefslogtreecommitdiffstats
path: root/regress/roff/nr
diff options
context:
space:
mode:
Diffstat (limited to 'regress/roff/nr')
-rw-r--r--regress/roff/nr/Makefile2
-rw-r--r--regress/roff/nr/undef.in24
-rw-r--r--regress/roff/nr/undef.out_ascii21
3 files changed, 46 insertions, 1 deletions
diff --git a/regress/roff/nr/Makefile b/regress/roff/nr/Makefile
index 8da68878..b3ba8102 100644
--- a/regress/roff/nr/Makefile
+++ b/regress/roff/nr/Makefile
@@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.9 2015/01/23 00:38:43 schwarze Exp $
-REGRESS_TARGETS = argc divzero eval escname int predef rr scale
+REGRESS_TARGETS = argc divzero escname eval int predef rr scale undef
LINT_TARGETS = divzero escname
.include <bsd.regress.mk>
diff --git a/regress/roff/nr/undef.in b/regress/roff/nr/undef.in
new file mode 100644
index 00000000..fd6000cb
--- /dev/null
+++ b/regress/roff/nr/undef.in
@@ -0,0 +1,24 @@
+.\" $OpenBSD: divzero.in,v 1.3 2017/07/04 14:53:27 schwarze Exp $
+.TH NR-UNDEF 1 "April 9, 2018"
+.SH NAME
+nr-undef \- using an undefined number register
+.SH DESCRIPTION
+The myr register is initially
+.ie rmyr defined.
+.el undefined.
+.PP
+Its initial value is \n[myr].
+.PP
+After interpolating it, is is now
+.ie rmyr defined.
+.el undefined.
+.PP
+.nr myr 1
+After defining it to \n[myr], it is of course still
+.ie rmyr defined.
+.el undefined.
+.PP
+.rr myr
+After removing it, it is again
+.ie rmyr defined.
+.el undefined.
diff --git a/regress/roff/nr/undef.out_ascii b/regress/roff/nr/undef.out_ascii
new file mode 100644
index 00000000..e7649eca
--- /dev/null
+++ b/regress/roff/nr/undef.out_ascii
@@ -0,0 +1,21 @@
+NR-UNDEF(1) General Commands Manual NR-UNDEF(1)
+
+
+
+NNAAMMEE
+ nr-undef - using an undefined number register
+
+DDEESSCCRRIIPPTTIIOONN
+ The myr register is initially undefined.
+
+ Its initial value is 0.
+
+ After interpolating it, is is now defined.
+
+ After defining it to 1, it is of course still defined.
+
+ After removing it, it is again undefined.
+
+
+
+OpenBSD April 9, 2018 NR-UNDEF(1)