diff options
Diffstat (limited to 'python/pymake/tests/foreach-local-variable.mk')
-rw-r--r-- | python/pymake/tests/foreach-local-variable.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/pymake/tests/foreach-local-variable.mk b/python/pymake/tests/foreach-local-variable.mk new file mode 100644 index 000000000..2551621eb --- /dev/null +++ b/python/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 |