From 3481ab142293bd82fdd59e3ec86dd66352e457c3 Mon Sep 17 00:00:00 2001 From: lemon Date: Fri, 19 Aug 2022 08:00:19 +0200 Subject: enum union size,align and enumty --- bootstrap/test.cff | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bootstrap') diff --git a/bootstrap/test.cff b/bootstrap/test.cff index ef0bbfb..31dfd6b 100644 --- a/bootstrap/test.cff +++ b/bootstrap/test.cff @@ -76,6 +76,12 @@ defmacro transmute(Type, x) [ ) ] +enum union Number { + none, + int i64, + flo f32, +} + extern fn main (argc int, argv **u8) int { let colors [3]Color = { :Red, :Green, :Blue } ; -- cgit v1.2.3