Regression test for correct placement of hoisting/deopting code.