Test case for #2765
Test case for #2765