blob: 09686b56a987e4d0905dc0d88f33fd72f2aa8686 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
include rt;
// zc0 keeps a local embed array in the code, so it refuses a store into one; the
// resident compiler accepts it (prints 9). tests/test.sh checks zc0's message.
fn main() {
embed "tests/data/embed/bytes.bin" as u8[] b;
b[1] = 9;
rt.put_n(b[1]); rt.put_c(10);
return 0;
}
|