From eaf2d360120a4cab12c27ed51961cd5d224042ff Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 25 Mar 2023 20:34:24 +0200 Subject: initial constant struct stuff --- tests/structs.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/structs.cu') diff --git a/tests/structs.cu b/tests/structs.cu index 24e520e..8a3a1bb 100644 --- a/tests/structs.cu +++ b/tests/structs.cu @@ -1,4 +1,4 @@ -type any {} +typedef any {} struct basic_struct { a i64; @@ -21,7 +21,7 @@ main() complex_named const = {.a = 1, .b = 2, .c = 3} as complex_struct; /* should parentheses be required around typeof? */ - complex_ordinal const = {1, 2, 3} as complex_named; + complex_ordinal const = {1, 2, 3} as typeof complex_named; complex_mixed const = {1, .b = 2, 3} as complex_struct; /* force types */ -- cgit v1.3