From 008fe3ecbf933d6e4c5edd9fd1ff2327703d428f Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 26 Apr 2022 11:38:38 +0000 Subject: If a node is tagged explicitly, skip implicit tagging for that node. Apart from making sense in the first place, this fixes an assertion failure that happened when the calculated implicit tag did not match the string value of the first child of the node, Bug found by tb@ using afl(1). --- regress/mdoc/Tg/implicit.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 regress/mdoc/Tg/implicit.in (limited to 'regress/mdoc/Tg/implicit.in') diff --git a/regress/mdoc/Tg/implicit.in b/regress/mdoc/Tg/implicit.in new file mode 100644 index 00000000..1f89f3e5 --- /dev/null +++ b/regress/mdoc/Tg/implicit.in @@ -0,0 +1,14 @@ +.\" $OpenBSD: implicit.in,v 1.1 2022/04/26 11:28:35 schwarze Exp $ +.Dd $Mdocdate$ +.Dt TG-IMPLICIT 1 +.Os +.Sh NAME +.Nm Tg-implicit +.Nd overriding implicit tagging +.Sh DESCRIPTION +BEGINTEST +.Pp +.Tg explicit +.Sy implicit is unsused +.Pp +ENDTEST -- cgit