raz / test / msg / ViewVolatile.err

5 lines · 269 B · raw · history · last change f784f531

1conform/err/ViewVolatile.raz:5:10: error: can't make a view of a volatile variable
2 5 | n := p^[4].(U32);
3 | ^^^^^^^^^^^
4help: a view may be misaligned, which can't be one access: reach a device through a ^VOLATILE pointer to a record
5raz: 1 error