diff options
Diffstat (limited to 'build/pymake/tests/foreach-local-variable.mk')
-rw-r--r-- | build/pymake/tests/foreach-local-variable.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/pymake/tests/foreach-local-variable.mk b/build/pymake/tests/foreach-local-variable.mk new file mode 100644 index 000000000..2551621eb --- /dev/null +++ b/build/pymake/tests/foreach-local-variable.mk @@ -0,0 +1,8 @@ +# This test ensures that a local variable in a $(foreach) is bound to +# the local value, not a global value. +i := dummy + +all: + test "$(foreach i,foo bar,found:$(i))" = "found:foo found:bar" + test "$(i)" = "dummy" + @echo TEST-PASS |