aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-outline1.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-16 16:46:06 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-16 16:46:06 -0700
commitb4d483354945aeec630231c0bf69d7c21c23baf0 (patch)
treee1282e56b5bcd551ba4afc271bd884fd5435928f /tools/test-js-optimizer-asm-outline1.js
parentf2f45b8499559181ae0a0b1b5e198a480b77e76f (diff)
test for outlining a return
Diffstat (limited to 'tools/test-js-optimizer-asm-outline1.js')
-rw-r--r--tools/test-js-optimizer-asm-outline1.js26
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 b4f55bd7..9d41b727 100644
--- a/tools/test-js-optimizer-asm-outline1.js
+++ b/tools/test-js-optimizer-asm-outline1.js
@@ -44,5 +44,31 @@ function lin2() {
c(20);
}
}
+function lin3() {
+ 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);
+ return 10;
+ }
+ return 20;
+}
// EMSCRIPTEN_GENERATED_FUNCTIONS
// EXTRA_INFO: { "sizeToOutline": 30 }