aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test.cff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-07 07:19:07 +0200
committerlemon <lsof@mailbox.org>2022-08-07 07:19:07 +0200
commit59988a43079d0097151f57f941ea8f01a0b714d7 (patch)
tree20932bdc821a013efaa06966ec88500ff33e6fc7 /bootstrap/test.cff
parente26df7d77f923108ac121f1d6c9c3160a6855109 (diff)
Type:decl syntax and fix some diagnostics
Diffstat (limited to 'bootstrap/test.cff')
-rw-r--r--bootstrap/test.cff3
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));