10 lines
218 B
Plaintext
10 lines
218 B
Plaintext
//ww:run-exit 25
|
|
// Migrated from 700_e2e row 34.
|
|
package main;
|
|
import rt;
|
|
type point = struct { x: i32, y: i32 };
|
|
fn main() i32 = {
|
|
let p: *point = alloc(point { x = 3, y = 4 })!;
|
|
return p.x * p.x + p.y * p.y;
|
|
};
|