aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/cond-func-make.mk
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/cond-func-make.mk')
-rw-r--r--contrib/bmake/unit-tests/cond-func-make.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/bmake/unit-tests/cond-func-make.mk b/contrib/bmake/unit-tests/cond-func-make.mk
index d75b69bcf98f..8903f9c0e723 100644
--- a/contrib/bmake/unit-tests/cond-func-make.mk
+++ b/contrib/bmake/unit-tests/cond-func-make.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cond-func-make.mk,v 1.3 2020/09/25 20:11:06 rillig Exp $
+# $NetBSD: cond-func-make.mk,v 1.7 2025/06/28 22:39:28 rillig Exp $
#
# Tests for the make() function in .if conditions, which tests whether
# the argument has been passed as a target via the command line or later
@@ -20,5 +20,15 @@
. error
.endif
+# expect+1: warning: Unfinished character list in pattern argument "[" to function "make"
+.if make([)
+. error
+.endif
+
+# Expressions in the argument of a function call don't have to be defined.
+.if make(${UNDEF})
+. error
+.endif
+
via-cmdline via-dot-makeflags:
: $@