aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test.cff
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/test.cff')
-rw-r--r--bootstrap/test.cff7
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 };