test21_2
auto test21_2 =
q{--- test21_2
// Causes other order of phi functions, which requires correct move sequence to resolve
// Tests phi resolution after register allocation
@extern(module, "host")
void print(i32); // external
void fibonacci() {
i32 lo = 0;
i32 hi = 1;
while (hi < 10000) {
i32 tmp = hi;
hi = hi + lo;
lo = tmp;
print(lo);
}
}
};
tests passing
functionsvariables