summaryrefslogtreecommitdiff
path: root/unit-tests/parse-var.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/parse-var.mk')
-rw-r--r--unit-tests/parse-var.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/unit-tests/parse-var.mk b/unit-tests/parse-var.mk
new file mode 100644
index 0000000000000..bd6c59f0e5cb8
--- /dev/null
+++ b/unit-tests/parse-var.mk
@@ -0,0 +1,13 @@
+# $NetBSD: parse-var.mk,v 1.1 2020/10/04 06:53:15 rillig Exp $
+
+.MAKEFLAGS: -dL
+
+# In variable assignments, there may be spaces on the left-hand side of the
+# assignment, but only if they occur inside variable expressions.
+VAR.${:U param }= value
+.if ${VAR.${:U param }} != "value"
+. error
+.endif
+
+all:
+ @:;