compiler: fix test for mismatch between function results and uses