diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-29 16:49:42 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-29 16:49:42 -0700 |
commit | fd223726a4069bd0e9bbaa17d6291ad56a79cfeb (patch) | |
tree | e54ce1ea6f44f2f6491e86f367f9ff26018ded91 /tools/eliminator/eliminator-test.js | |
parent | 05a26d92ef6da845cfcbff79c5fc7a2de56263bf (diff) |
eliminate variables that have no uses but their definition has side effects
Diffstat (limited to 'tools/eliminator/eliminator-test.js')
-rw-r--r-- | tools/eliminator/eliminator-test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/eliminator/eliminator-test.js b/tools/eliminator/eliminator-test.js index d901bc78..e44f28ad 100644 --- a/tools/eliminator/eliminator-test.js +++ b/tools/eliminator/eliminator-test.js @@ -129,6 +129,12 @@ function c() { zoom(z2); hail(w2); sunk(y2); + var fly = you(fools); + var one, two = three(); // more than one var here, so cannot eliminate |two=|, oh well + var noneed; + noneed = fools(you); + var noneed2; + noneed2 += fools(you2); return; } function f() { |