diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-27 03:18:48 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-27 03:18:48 +0300 |
| commit | 78cf00cb506cb86112cb715e4d2d69ec11b20c42 (patch) | |
| tree | 32a1fd3d1e60343cb1e654900c2d4dedca5e938b /tests/calls.cu | |
| parent | 9fb179ab999c3b98caabca09b30c409dc5dd3b3d (diff) | |
| download | ek-78cf00cb506cb86112cb715e4d2d69ec11b20c42.tar.gz ek-78cf00cb506cb86112cb715e4d2d69ec11b20c42.zip | |
change typeof to be a full time type
Diffstat (limited to 'tests/calls.cu')
| -rw-r--r-- | tests/calls.cu | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/calls.cu b/tests/calls.cu new file mode 100644 index 0000000..4978649 --- /dev/null +++ b/tests/calls.cu @@ -0,0 +1,19 @@ +typedef some_type { + add(some_type, some_type => some_type); +} + +add(a u32, b u32 => u32) +{ + return a + b; +} + +/* ah fuck, analyze_proc gobbles up the typeof */ +some_proc(a some_type, b typeof a => typeof a) +{ + return add(a, b); +} + +main() +{ + some_proc(20 as u32, 40 as u32); +} |
