summaryrefslogtreecommitdiff
path: root/unit-tests/varmod.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/varmod.mk')
-rw-r--r--unit-tests/varmod.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/unit-tests/varmod.mk b/unit-tests/varmod.mk
index 0a2a4c52c29b..b496bdd206a2 100644
--- a/unit-tests/varmod.mk
+++ b/unit-tests/varmod.mk
@@ -1,4 +1,4 @@
-# $NetBSD: varmod.mk,v 1.3 2020/09/13 07:42:20 rillig Exp $
+# $NetBSD: varmod.mk,v 1.4 2020/11/02 17:30:22 rillig Exp $
#
# Tests for variable modifiers, such as :Q, :S,from,to or :Ufallback.
@@ -48,4 +48,13 @@ DOLLAR2= ${:U\$}
. error
.endif
+# The variable modifier :P does not fall back to the SysV modifier.
+# Therefore the modifier :P=RE generates a parse error.
+# XXX: The .error should not be reached since the variable expression is
+# malformed.
+VAR= STOP
+.if ${VAR:P=RE} != "STORE"
+. error
+.endif
+
all: # nothing