diff options
| author | 2022-08-07 07:19:07 +0200 | |
|---|---|---|
| committer | 2022-08-07 07:19:07 +0200 | |
| commit | 59988a43079d0097151f57f941ea8f01a0b714d7 (patch) | |
| tree | 20932bdc821a013efaa06966ec88500ff33e6fc7 /bootstrap/test.cff | |
| parent | e26df7d77f923108ac121f1d6c9c3160a6855109 (diff) | |
Type:decl syntax and fix some diagnostics
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)); |