diff options
| author | 2022-08-05 19:56:09 +0200 | |
|---|---|---|
| committer | 2022-08-05 19:56:09 +0200 | |
| commit | a2e4d0a565a8e756f36177003a51e224aca238b9 (patch) | |
| tree | 368f027a7e08cd7750f0b61f2e6277f70983fd37 /bootstrap/test.cff | |
| parent | c2a13e05596c724fbdbc3e8ff1266c099b675e56 (diff) | |
. operator on pointers
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 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); |