diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 17:49:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-16 17:49:40 -0700 |
commit | f09da648e3edf1716477772d85e2556c147fa26a (patch) | |
tree | bc12d6762eca18bef517c632bdf68e8367696bae /tools/test-js-optimizer-asm-outline1.js | |
parent | f5f36712af0284244f60c109623938841b846948 (diff) |
add test for outlining of continue
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 b8c1b28f..5f9a79f3 100644 --- a/tools/test-js-optimizer-asm-outline1.js +++ b/tools/test-js-optimizer-asm-outline1.js @@ -96,5 +96,31 @@ function lin4() { } return 20; } +function lin5() { + 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); + continue; + } + return 20; +} // EMSCRIPTEN_GENERATED_FUNCTIONS // EXTRA_INFO: { "sizeToOutline": 30 } |