From a2e4d0a565a8e756f36177003a51e224aca238b9 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 5 Aug 2022 19:56:09 +0200 Subject: . operator on pointers --- bootstrap/test.cff | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bootstrap/test.cff') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index 46e3b8c..d7f86bf 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -33,7 +33,8 @@ extern fn main (argc int, argv **u8) int { let colors [3]Color = { :Red, :Green, :Blue } ; let x = Vec2f { .y: 1, .x: 2.4 }; - printf("v = { %g, %g }\n", x.x, x.y); + let p = &x; + printf("v = { %g, %g }\n", x.x, p.y); let is [10]int = { [4] = 1, 2, [1 - 1] = 3 }; isort(is, 10); -- cgit v1.2.3