summaryrefslogtreecommitdiff
path: root/tests/scripts/features
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-09-24 20:59:22 +0000
committerPaul Smith <psmith@gnu.org>2009-09-24 20:59:22 +0000
commitd65b267e4a52a23911365424c37283c899d381c7 (patch)
tree31407ff5eb81625dd09d455bdddea54e1806c0d6 /tests/scripts/features
parent0afbbf8595b6035a5a930399d20320d2e2852d72 (diff)
downloadgunmake-d65b267e4a52a23911365424c37283c899d381c7.tar.gz
- Fix broken handling of order-only prereqs in secondary expansion
of implicit rules. - Fix leaked memory when dealing with implicit rule chains that have file variables or pattern variables.
Diffstat (limited to 'tests/scripts/features')
-rw-r--r--tests/scripts/features/se_implicit11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/scripts/features/se_implicit b/tests/scripts/features/se_implicit
index 6db0031..e9acb2f 100644
--- a/tests/scripts/features/se_implicit
+++ b/tests/scripts/features/se_implicit
@@ -210,6 +210,17 @@ oo$ba.1
oo$ba
');
+# Test #9: Check the value of $^
+run_make_test(q!
+.SECONDEXPANSION:
+
+%.so: | $$(extra) ; @echo $^
+
+foo.so: extra := foo.o
+foo.so:
+foo.o:
+!,
+ '', "\n");
# This tells the test driver that the perl test script executed properly.
1;