summaryrefslogtreecommitdiff
path: root/tests/scripts/features
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2006-03-15 03:31:30 +0000
committerPaul Smith <psmith@gnu.org>2006-03-15 03:31:30 +0000
commit50eb3cf5e5a8a68b68e966a6607f668f2c36191e (patch)
tree8665fbf1e101e681967fbfea570d09bbe6f3ab54 /tests/scripts/features
parent6d8d9b74d9c50cb07fe952ac0929f618e4280a55 (diff)
downloadgunmake-50eb3cf5e5a8a68b68e966a6607f668f2c36191e.tar.gz
Fix Savannah bug #15913.
Diffstat (limited to 'tests/scripts/features')
-rw-r--r--tests/scripts/features/targetvars12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars
index 18dd023..e2e9c90 100644
--- a/tests/scripts/features/targetvars
+++ b/tests/scripts/features/targetvars
@@ -292,4 +292,16 @@ rules.mk : MYVAR = foo
rmfiles('t1/rules.mk');
rmdir('t1');
+# TEST #18
+
+# Test appending to a simple variable containing a "$": avoid a
+# double-expansion. See Savannah bug #15913.
+
+run_make_test("
+VAR := \$\$FOO
+foo: VAR += BAR
+foo: ; \@echo '\$(VAR)'",
+ '',
+ '$FOO BAR');
+
1;