test: assign result of print functions to temporary
commit649a546d702b41474fe76e9c779086cc8d35f3d2
authorMichael Forney <mforney@mforney.org>
Sun, 5 Sep 2021 00:23:53 +0000 (4 17:23 -0700)
committerQuentin Carbonneaux <quentin@c9x.me>
Tue, 7 Sep 2021 06:31:48 +0000 (7 08:31 +0200)
tree71ff9c3fdcf2931865aca4a8c3d8c9b1b723b5f5
parent028534d9897079bf64559dca0402bc59a956ce46
test: assign result of print functions to temporary

Though I am not aware of any architecture where this matters, it
is technically incorrect to call these stdio functions as if they
had no result.

The QBE documentation says

> Unless the called function does not return a value, a return
> temporary must be specified, even if it is never used afterwards.

so we should follow it in the tests as well.
test/vararg2.ssa