Comment 1 for bug 1790343

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) wrote :

Test is missing a return statement. I think main is compiled more efficiently because it can see that the value in the ptr field is the same as the value being returned so it's happy to put ptr into r0. For test the return is missing so the compiler might be assuming that r0 should not be reused.

Best regards.