aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/cond-func-commands.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/cond-func-commands.mk')
-rw-r--r--contrib/bmake/unit-tests/cond-func-commands.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/bmake/unit-tests/cond-func-commands.mk b/contrib/bmake/unit-tests/cond-func-commands.mk
index e127a8ebdc03..d193587cd2c1 100644
--- a/contrib/bmake/unit-tests/cond-func-commands.mk
+++ b/contrib/bmake/unit-tests/cond-func-commands.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cond-func-commands.mk,v 1.5 2020/11/15 14:07:53 rillig Exp $
+# $NetBSD: cond-func-commands.mk,v 1.6 2025/01/10 23:00:38 rillig Exp $
#
# Tests for the commands() function in .if conditions.
@@ -33,5 +33,10 @@ target:
. error
.endif
+# Expressions in the argument of a function call don't have to be defined.
+.if commands(${UNDEF})
+. error
+.endif
+
all:
@:;