summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/tableSwitchEmpty.js
blob: 42a050dc6397d203938c3e5228a034dc3999bb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

function f(a) {
    switch(a) {
    }
    switch(a) {
        default: return 0;
    }
    assertEq(0, 1);
}

assertEq(f(), 0);
assertEq(f(0), 0);
assertEq(f(1.1), 0);