diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-25 20:34:24 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-25 20:34:24 +0200 |
| commit | eaf2d360120a4cab12c27ed51961cd5d224042ff (patch) | |
| tree | 888b4715a1edf7ec74fed1bd26c31213c548650d /tests/structs.cu | |
| parent | 3bd9103ce0b18f6900ba544a8b2786145868524f (diff) | |
| download | ek-eaf2d360120a4cab12c27ed51961cd5d224042ff.tar.gz ek-eaf2d360120a4cab12c27ed51961cd5d224042ff.zip | |
initial constant struct stuff
Diffstat (limited to 'tests/structs.cu')
| -rw-r--r-- | tests/structs.cu | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |
