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