//@ runDefault("--validateGraphAtEachPhase=1", "--forceBaseline=1")

let items = [];
for (let i = 0; i < 8; ++i) {
    class C {
    }
    items.push(new C());
}
function foo(x) {
    x.z = 0;
}
for (let i = 0; i < 100000; ++i) {
    for (let j = 0; j < items.length; ++j) {
        foo(items[j]);
    }
}
