return: Add test for returning inside a foreach loop

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Merge topic 'return-test-foreach' into next

d124c411 return: Add test for returning inside a foreach loop