From d12ff78cb207027b04792c28078ba1086cddcd95 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Tue, 20 Sep 2022 02:18:48 -0400 Subject: [PATCH] * tests/scripts/features/statipattrules: [SV 17374] Add test Verify that double-colon static pattern rules work. --- tests/scripts/features/statipattrules | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/scripts/features/statipattrules b/tests/scripts/features/statipattrules index ceee0a99..e4e118ef 100644 --- a/tests/scripts/features/statipattrules +++ b/tests/scripts/features/statipattrules @@ -138,9 +138,20 @@ hello.z: %.z: %.x ; @echo $@ unrelated: hello.x !, '', "hello.z\n"); - unlink('hello.z'); +# sv 17374 Ensure double-colon static pattern rules work + +touch(qw(a.src b.src)); + +run_make_test(q! +all: a.tgt b.tgt +a.tgt b.tgt:: %.tgt : %.src ; cp $< $@ +!, + '', "cp a.src a.tgt\ncp b.src b.tgt\n"); + +unlink(qw(a.src b.src a.tgt b.tgt)); + my @dir = ('', 'lib/'); # With and without last slash. my @secondexpansion = ('', '.SECONDEXPANSION:');