Interestingly, the compiler emits no call to malloc, even. What!?
https://godbolt.org/z/U5VGxt
Without cheating:
https://godbolt.org/z/rzcXg2
It doesn't optimize the two stores to b away.
https://godbolt.org/z/U5VGxt
Without cheating:
https://godbolt.org/z/rzcXg2
It doesn't optimize the two stores to b away.