From fd30db129060770ac0851035e1ca00c371cbee62 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 22 Sep 2013 16:59:04 -0400 Subject: [SV 31155] Parse order-only tokens in second expansion results. --- tests/scripts/features/se_implicit | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/scripts') diff --git a/tests/scripts/features/se_implicit b/tests/scripts/features/se_implicit index 0a31948..ec09d8d 100644 --- a/tests/scripts/features/se_implicit +++ b/tests/scripts/features/se_implicit @@ -244,5 +244,17 @@ sim_%: \ unlink('a'); +# Ensure that order-only tokens embedded in second expansions are parsed +run_make_test(q! +.SECONDEXPANSION: +PREREQS=p1|p2 +P2=p2 +all : foo bar +f%o: $$(PREREQS) ; @echo '$@' from '$^' and '$|' +b%r: p1|$$(P2) ; @echo '$@' from '$^' and '$|' +p% : ; : $@ +!, + "", ": p1\n: p2\nfoo from p1 and p2\nbar from p1 and p2\n"); + # This tells the test driver that the perl test script executed properly. 1; -- cgit v1.2.3