michael@0: # This test ensures that a local variable in a $(foreach) is bound to michael@0: # the local value, not a global value. michael@0: i := dummy michael@0: michael@0: all: michael@0: test "$(foreach i,foo bar,found:$(i))" = "found:foo found:bar" michael@0: test "$(i)" = "dummy" michael@0: @echo TEST-PASS