summaryrefslogtreecommitdiff
path: root/tests/scripts/variables/flavors
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2004-11-29 01:35:13 +0000
committerPaul Smith <psmith@gnu.org>2004-11-29 01:35:13 +0000
commitbe6a8bc869ece930f3bd5f725efd9fab7a2c2940 (patch)
tree969b7026f6b5c7b0153946d5f6b4f8cd412095d8 /tests/scripts/variables/flavors
parent539f513773b2e651d987a7bdbdffd8b5164d58cf (diff)
downloadgunmake-be6a8bc869ece930f3bd5f725efd9fab7a2c2940.tar.gz
Fix bug #10252: Remove any trailing slashes from -C arguments (WINDOWS32).
Add a regression test for "@" before a define/enddef vs. one inside.
Diffstat (limited to 'tests/scripts/variables/flavors')
-rw-r--r--tests/scripts/variables/flavors25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/scripts/variables/flavors b/tests/scripts/variables/flavors
index 88e9ad5..3ceac5e 100644
--- a/tests/scripts/variables/flavors
+++ b/tests/scripts/variables/flavors
@@ -155,4 +155,29 @@ world');
run_make_test(undef, 'V1=@ V2=@', 'hello
world');
+# TEST #10
+# -------
+# Test the basics; a "@" internally to the variable applies to only one line.
+# A "@" before the variable applies to the entire variable.
+
+run_make_test('
+define FOO
+@echo hello
+echo world
+endef
+define BAR
+echo hello
+echo world
+endef
+
+all: foo bar
+foo: ; $(FOO)
+bar: ; @$(BAR)
+', '', 'hello
+echo world
+world
+hello
+world
+');
+
1;