aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Xr
diff options
context:
space:
mode:
Diffstat (limited to 'regress/mdoc/Xr')
-rw-r--r--regress/mdoc/Xr/Makefile6
-rw-r--r--regress/mdoc/Xr/args.in27
-rw-r--r--regress/mdoc/Xr/args.out_ascii16
-rw-r--r--regress/mdoc/Xr/args.out_lint3
4 files changed, 52 insertions, 0 deletions
diff --git a/regress/mdoc/Xr/Makefile b/regress/mdoc/Xr/Makefile
new file mode 100644
index 00000000..98887f84
--- /dev/null
+++ b/regress/mdoc/Xr/Makefile
@@ -0,0 +1,6 @@
+# $OpenBSD: Makefile,v 1.4 2015/02/06 01:07:07 schwarze Exp $
+
+REGRESS_TARGETS = args
+LINT_TARGETS = args
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Xr/args.in b/regress/mdoc/Xr/args.in
new file mode 100644
index 00000000..97e68202
--- /dev/null
+++ b/regress/mdoc/Xr/args.in
@@ -0,0 +1,27 @@
+.Dd December 3, 2011
+.Dt XR-ARGS 1
+.Os OpenBSD
+.Sh NAME
+.Nm Xr-args
+.Nd additional arguments to cross references
+.Sh DESCRIPTION
+One single
+.Xr echo 1
+is fine, and so is an
+.Xr echo 1 followed by something else.
+.Pp
+But listen for multiple
+.Xr echo 1 Ns s .
+.Pp
+A call, an
+.Xr echo 1 , and
+another
+.Xr echo 1 .
+.Pp
+Finally, half an
+.Xr echo ,
+no echo
+.Xr ,
+and no
+.Xr
+echo at all.
diff --git a/regress/mdoc/Xr/args.out_ascii b/regress/mdoc/Xr/args.out_ascii
new file mode 100644
index 00000000..81fe8784
--- /dev/null
+++ b/regress/mdoc/Xr/args.out_ascii
@@ -0,0 +1,16 @@
+XR-ARGS(1) General Commands Manual XR-ARGS(1)
+
+NNAAMMEE
+ XXrr--aarrggss - additional arguments to cross references
+
+DDEESSCCRRIIPPTTIIOONN
+ One single echo(1) is fine, and so is an echo(1) followed by something
+ else.
+
+ But listen for multiple echo(1)s.
+
+ A call, an echo(1), and another echo(1).
+
+ Finally, half an echo, no echo and no echo at all.
+
+OpenBSD December 3, 2011 OpenBSD
diff --git a/regress/mdoc/Xr/args.out_lint b/regress/mdoc/Xr/args.out_lint
new file mode 100644
index 00000000..8ade7488
--- /dev/null
+++ b/regress/mdoc/Xr/args.out_lint
@@ -0,0 +1,3 @@
+mandoc: args.in:24:2: WARNING: skipping empty macro: Xr
+mandoc: args.in:26:2: WARNING: skipping empty macro: Xr
+mandoc: args.in:22:2: WARNING: missing section argument: Xr echo