diff options
author | Paul Smith <psmith@gnu.org> | 2004-11-29 01:35:13 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-11-29 01:35:13 +0000 |
commit | be6a8bc869ece930f3bd5f725efd9fab7a2c2940 (patch) | |
tree | 969b7026f6b5c7b0153946d5f6b4f8cd412095d8 /tests/scripts/variables | |
parent | 539f513773b2e651d987a7bdbdffd8b5164d58cf (diff) | |
download | gunmake-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')
-rw-r--r-- | tests/scripts/variables/flavors | 25 |
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; |