diff options
Diffstat (limited to 'contrib/bmake/unit-tests/directive-if.mk')
-rw-r--r-- | contrib/bmake/unit-tests/directive-if.mk | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/contrib/bmake/unit-tests/directive-if.mk b/contrib/bmake/unit-tests/directive-if.mk index 3b1d13c7a0c0..b1ad2396b398 100644 --- a/contrib/bmake/unit-tests/directive-if.mk +++ b/contrib/bmake/unit-tests/directive-if.mk @@ -1,4 +1,4 @@ -# $NetBSD: directive-if.mk,v 1.7 2020/11/15 20:20:58 rillig Exp $ +# $NetBSD: directive-if.mk,v 1.9 2020/12/19 22:33:11 rillig Exp $ # # Tests for the .if directive. # @@ -38,9 +38,9 @@ # are interpreted as ordinary directives, producing the error messages # "if-less else" and "if-less endif". .ifx 123 -. error +.info This is not conditional. .else -. error +.info This is not conditional. .endif # Missing condition. @@ -78,4 +78,12 @@ . error .endif +.if(1) +. info Don't do this, always put a space after a directive. +.endif + +.if!0 +. info Don't do this, always put a space after a directive. +.endif + all: |