From 82cdf010329c4ac6827698689e7e39644fad07b6 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 6 May 2023 22:06:25 +0300 Subject: rename *.cu to *.ek + Name changes can be sort of difficult --- tests/calls.ek | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/calls.ek (limited to 'tests/calls.ek') diff --git a/tests/calls.ek b/tests/calls.ek new file mode 100644 index 0000000..4978649 --- /dev/null +++ b/tests/calls.ek @@ -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); +} -- cgit v1.3