summaryrefslogtreecommitdiff
path: root/tests/scripts/variables
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@kolpackov.net>2005-03-09 19:21:34 +0000
committerBoris Kolpackov <boris@kolpackov.net>2005-03-09 19:21:34 +0000
commit18251c4633134c704464d7c567d82a110ab820c8 (patch)
tree64059a7128504089c898b962317915cfdbc73b27 /tests/scripts/variables
parent2860d3b247e70a34246936fb085aeec951ea49b1 (diff)
downloadgunmake-18251c4633134c704464d7c567d82a110ab820c8.tar.gz
Fixed Savannah bug #12266.
Diffstat (limited to 'tests/scripts/variables')
-rw-r--r--tests/scripts/variables/DEFAULT_TARGET21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/scripts/variables/DEFAULT_TARGET b/tests/scripts/variables/DEFAULT_TARGET
index 76b2a23..d8f1173 100644
--- a/tests/scripts/variables/DEFAULT_TARGET
+++ b/tests/scripts/variables/DEFAULT_TARGET
@@ -3,6 +3,7 @@ $description = "Test the .DEFAULT_TARGET special variable.";
$details = "";
+
# Test #1: basic logic.
#
run_make_test('
@@ -45,7 +46,7 @@ run_make_test('
512);
-# Test #2: more than one target.
+# Test #3: more than one target.
#
run_make_test('
.DEFAULT_TARGET := foo bar
@@ -55,5 +56,23 @@ run_make_test('
512);
+# Test #4: Savannah bug #12226.
+#
+run_make_test('
+define rule
+foo: ; @echo $$@
+endef
+
+define make-rule
+$(eval $(rule))
+endef
+
+$(call make-rule)
+
+',
+'',
+'foo');
+
+
# This tells the test driver that the perl test script executed properly.
1;