aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/varname-empty.mk
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/varname-empty.mk')
-rwxr-xr-xunit-tests/varname-empty.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/unit-tests/varname-empty.mk b/unit-tests/varname-empty.mk
index fd9aa05b6057..492f9f2618ba 100755
--- a/unit-tests/varname-empty.mk
+++ b/unit-tests/varname-empty.mk
@@ -1,4 +1,4 @@
-# $NetBSD: varname-empty.mk,v 1.7 2020/10/23 17:53:01 rillig Exp $
+# $NetBSD: varname-empty.mk,v 1.8 2021/02/03 08:34:15 rillig Exp $
#
# Tests for the special variable with the empty name.
#
@@ -41,6 +41,13 @@ ${:U}= assigned indirectly
. error
.endif
+${:U}+= appended indirectly
+.if ${:Ufallback} != "fallback"
+. error
+.endif
+
+.MAKEFLAGS: -d0
+
# Before 2020-08-22, the simple assignment operator '=' after an empty
# variable name had an off-by-one bug in Parse_DoVar. The code that was
# supposed to "skip to operator character" started its search _after_ the