summaryrefslogtreecommitdiff
path: root/tests/scripts/features/targetvars
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-13 18:50:10 +0000
committerPaul Smith <psmith@gnu.org>2002-10-13 18:50:10 +0000
commit8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d (patch)
tree19aedce81b831b1ad57c3b0fef27589070dc879c /tests/scripts/features/targetvars
parent47cd8d4624b60d3462991c436c961e0721cd278b (diff)
downloadgunmake-8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d.tar.gz
Fix bug#1379: don't use alloca() where it could overrun the stack size.
Implemented enhancement #1391: allow "export" in target-specific variable definitions. Change the Info name of the "Automatic" node to "Automatic Variables". Add text clarifying the scope of automatic variables to that section.
Diffstat (limited to 'tests/scripts/features/targetvars')
-rw-r--r--tests/scripts/features/targetvars8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scripts/features/targetvars b/tests/scripts/features/targetvars
index 06328c2..2375f71 100644
--- a/tests/scripts/features/targetvars
+++ b/tests/scripts/features/targetvars
@@ -37,6 +37,8 @@ eight: BAR = eight
# Test the export keyword with per-target variables
nine: ; @echo $(FOO) $(BAR) $$FOO $$BAR
nine: FOO = wallace
+nine-a: export BAZ = baz
+nine-a: ; @echo $$BAZ
# Test = escaping
EQ = =
ten: one\=two
@@ -86,6 +88,12 @@ $answer = "eight: seven eight\nseven: seven seven\n";
$answer = "wallace bar wallace bar\n";
&compare_output($answer,&get_logfile(1));
+# TEST #5-a
+
+&run_make_with_options($makefile, "nine-a", &get_logfile);
+$answer = "baz\n";
+&compare_output($answer,&get_logfile(1));
+
# TEST #6
&run_make_with_options($makefile, "ten", &get_logfile);