Test case for https://github.com/kripken/emscripten/issues/2045