mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
13 lines
No EOL
174 B
Text
13 lines
No EOL
174 B
Text
//@check-pass
|
|
|
|
type A = struct { a: Int };
|
|
|
|
function main() = (
|
|
let a = A { a: 0 };
|
|
rawr(___transmute(a));
|
|
std.printInt(a.a);
|
|
);
|
|
|
|
function rawr(a: *A) = (
|
|
a.a = 1;
|
|
); |