From 180a05ae7e00bf6a7a89740bba0bde300e34f93d Mon Sep 17 00:00:00 2001 From: Ron Yorston <rmy@pobox.com> Date: Thu, 24 Aug 2023 15:56:09 +0100 Subject: Add test for .DEFAULT rule for prerequisite Add a test for the problem reported in -w32 GitHub issue #354. --- testsuite/make.tests | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testsuite/make.tests b/testsuite/make.tests index 2d286d5b8..b53b4a2ea 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests @@ -23,6 +23,13 @@ testing "make .DEFAULT rule" \ target: ' +testing "make .DEFAULT rule for prerequisite" \ + "make -f - 2>/dev/null" "source\n" "" ' +.DEFAULT: + @echo $@ +target: source +' + # Macros should be expanded before suffix substitution. The suffixes # can be obtained by macro expansion. testing "make macro expansion and suffix substitution" \ -- cgit v1.2.3-55-g6feb