eliminate noop calls more aggressively (#2559)

This commit is contained in:
Alex Lam S.L
2017-12-07 01:22:08 +08:00
committed by GitHub
parent 3dd495ecdd
commit d21cb84696
2 changed files with 33 additions and 12 deletions

View File

@@ -652,3 +652,23 @@ issue_2531_3: {
}
expect_stdout: "Greeting: Hello"
}
empty_body: {
options = {
reduce_vars: true,
side_effects: true,
}
input: {
function f() {
function noop() {}
noop();
return noop;
}
}
expect: {
function f() {
function noop() {}
return noop;
}
}
}