diff options
| author | 2022-08-05 04:27:38 +0200 | |
|---|---|---|
| committer | 2022-08-05 04:27:38 +0200 | |
| commit | b0d95956fcade40a2d608ccea79e2e989f97b72f (patch) | |
| tree | c14f21aba1acc52d0f2fd1320b48fac42de634bc /bootstrap/test.cff | |
| parent | 0fec7de747d93586eda66ce190f5f3d6715421a4 (diff) | |
more struct
Diffstat (limited to 'bootstrap/test.cff')
| -rw-r--r-- | bootstrap/test.cff | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap/test.cff b/bootstrap/test.cff index 651c2ce..f6deb67 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -11,12 +11,17 @@ union Val { y f64, } +enum Color { + Red, Green, Blue +} + static xs *void = {}; extern fn main (argc int, argv **u8) void { extern fn printf(fmt *const u8, ...) int; - let x Vec2f = { .y: 1, .x: 2.4 }; + 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 is [10]int = { [4] = 1, 2, [1 - 1] = 3 }; |