From be6a8bc869ece930f3bd5f725efd9fab7a2c2940 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 29 Nov 2004 01:35:13 +0000 Subject: Fix bug #10252: Remove any trailing slashes from -C arguments (WINDOWS32). Add a regression test for "@" before a define/enddef vs. one inside. --- tests/scripts/variables/flavors | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/scripts/variables') 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; -- cgit v1.2.3