diff options
Diffstat (limited to 'bootstrap/test.cff')
| -rw-r--r-- | bootstrap/test.cff | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap/test.cff b/bootstrap/test.cff index 2a7a138..4d1393b 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -68,7 +68,7 @@ extern fn main (argc int, argv **u8) int { let p *const Vec2f = &x; printf("v = { %g, %g }\n", x.x, p.y); printf("mag = %g\n", x->mag()); - x->zero(); + Vec2f:zero(&x); printf("mag = %g\n", (&x)->mag()); let is []int = { [4] = 1, 2, [1 - 1] = 3 }; @@ -84,6 +84,7 @@ extern fn main (argc int, argv **u8) int { slice.#len; let const v Vec2f = {}; + ! v->zero(); ! v.x += 1; printf("sizeof(is) = %zu\n", sizeof(is)); |