()
| 524 | alloc := import("alloc") |
| 525 | vec := import("vec") |
| 526 | owned := import("owned_string") |
| 527 | arena := import("arena") |
| 528 | pool := import("pool") |
| 529 | |
| 530 | main: () -> i32 { |
| 531 | v: vec.Vec<i64> = { .ptr = null, .len = 0, .capacity = 0 } |
| 532 | vec.Vec_init<i64>(&v) |
| 533 | if v.len != 0 or v.capacity != 0 { return 1 } |
| 534 | |
| 535 | i: i64 = 0 |
| 536 | while i < 100 { |
| 537 | pushed := vec.Vec_push<i64>(&v, i * 3) |
| 538 | match pushed { |
| 539 | Ok(len) -> {} |
| 540 | Err(error) -> { return 2 } |
| 541 | } |
nothing calls this directly
no test coverage detected