From 6cdaff0948bbec3220d5cb071f79d5f2e1c9b083 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 25 Jun 2005 21:30:13 +0000 Subject: Fix Savannah bug #1454: skip over semicolons (and comments) inside variable references in target definition lines. --- tests/scripts/misc/general3 | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'tests/scripts/misc') diff --git a/tests/scripts/misc/general3 b/tests/scripts/misc/general3 index 2421ed4..40b7ed9 100644 --- a/tests/scripts/misc/general3 +++ b/tests/scripts/misc/general3 @@ -5,13 +5,7 @@ This tests random features of the parser that need to be supported, and which have either broken at some point in the past or seem likely to break."; -$makefile2 = &get_tmpfile; - -open(MAKEFILE,"> $makefile"); - -# The contents of the Makefile ... - -print MAKEFILE < $makefile2"); print MAKEFILE "all:;\@echo FOO = \$(FOO)\nFOO = foo"; @@ -54,5 +43,14 @@ close(MAKEFILE); $answer = "FOO = foo\n"; &compare_output($answer,&get_logfile(1)); +# TEST 3 + +# Check semicolons in variable references + +run_make_test(' +$(if true,$(info true; true)) +all: ; @: +', + '', 'true; true'); 1; -- cgit v1.2.3