diff options
Diffstat (limited to 'unit-tests/cond-op-not.mk')
-rw-r--r-- | unit-tests/cond-op-not.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/unit-tests/cond-op-not.mk b/unit-tests/cond-op-not.mk index 388c62d8898f..ffd5bc89e4bf 100644 --- a/unit-tests/cond-op-not.mk +++ b/unit-tests/cond-op-not.mk @@ -1,4 +1,4 @@ -# $NetBSD: cond-op-not.mk,v 1.6 2020/11/15 14:58:14 rillig Exp $ +# $NetBSD: cond-op-not.mk,v 1.7 2021/01/19 17:49:13 rillig Exp $ # # Tests for the ! operator in .if conditions, which negates its argument. @@ -55,5 +55,12 @@ . info Not word evaluates to false. .endif +# A single exclamation mark is a parse error. +.if ! +. error +.else +. error +.endif + all: @:; |