diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 17:42:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 17:42:40 -0700 |
commit | f5f36712af0284244f60c109623938841b846948 (patch) | |
tree | 84e1010beae493dd564027c05898a1dd16b7d329 /tools/test-js-optimizer-asm-outline1.js | |
parent | 4260723fdf4c436a7999c9b3eefb8cd0e8b1208a (diff) |
fix break forwarding in outlined code
Diffstat (limited to 'tools/test-js-optimizer-asm-outline1.js')
-rw-r--r-- | tools/test-js-optimizer-asm-outline1.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-outline1.js b/tools/test-js-optimizer-asm-outline1.js index 9d41b727..b8c1b28f 100644 --- a/tools/test-js-optimizer-asm-outline1.js +++ b/tools/test-js-optimizer-asm-outline1.js @@ -70,5 +70,31 @@ function lin3() { } return 20; } +function lin4() { + while (1) { + c(1); + c(2); + c(3); + c(4); + c(5); + c(6); + c(7); + c(8); + c(9); + c(10); + c(11); + c(12); + c(13); + c(14); + c(15); + c(16); + c(17); + c(18); + c(19); + c(20); + break; + } + return 20; +} // EMSCRIPTEN_GENERATED_FUNCTIONS // EXTRA_INFO: { "sizeToOutline": 30 } |