diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-06 22:06:25 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-05-06 22:06:25 +0300 |
| commit | 82cdf010329c4ac6827698689e7e39644fad07b6 (patch) | |
| tree | 641c75ea227892a3d8e1a28dcd1001d6ec114600 /tests/unions.cu | |
| parent | f98ec211bf60858b43b87ae125a5e13be9b41ee5 (diff) | |
| download | ek-82cdf010329c4ac6827698689e7e39644fad07b6.tar.gz ek-82cdf010329c4ac6827698689e7e39644fad07b6.zip | |
rename *.cu to *.ek
+ Name changes can be sort of difficult
Diffstat (limited to 'tests/unions.cu')
| -rw-r--r-- | tests/unions.cu | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/unions.cu b/tests/unions.cu deleted file mode 100644 index 6c3edc5..0000000 --- a/tests/unions.cu +++ /dev/null @@ -1,23 +0,0 @@ -typedef any {} - -union basic_union { - a u32; - b i64; - c f32; -} - -union complex_union(A any, B any, C any) { - a A; - b B; - c C; -} - -main() -{ - simple_named const = {.b = 1} as basic_union; - simple_ordinal const = {1 as u32} as basic_union; - - // TODO: unions should be fully actualized - complex_named const = {.b = 1} as complex_union(u32, i64, f32); - complex_ordinal const = {1 as u32} as complex_union(u32, i64, f32); -} |
