aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/call.ek11
-rw-r--r--tests/calls.ek19
2 files changed, 11 insertions, 19 deletions
diff --git a/tests/call.ek b/tests/call.ek
new file mode 100644
index 0000000..86d6ed0
--- /dev/null
+++ b/tests/call.ek
@@ -0,0 +1,11 @@
+typedef i27 {}
+
+add(i27 a, i27 b => i27)
+{
+ return a + b;
+}
+
+main()
+{
+ add(20 as i27, 40 as i27);
+}
diff --git a/tests/calls.ek b/tests/calls.ek
deleted file mode 100644
index 0a4c20d..0000000
--- a/tests/calls.ek
+++ /dev/null
@@ -1,19 +0,0 @@
-typedef some_type {
- add(some_type, some_type => some_type);
-}
-
-add(u32 a, u32 b => u32)
-{
- return a + b;
-}
-
-/* ah fuck, analyze_proc gobbles up the typeof */
-some_proc(some_type a, typeof a b => typeof a)
-{
- return add(a, b);
-}
-
-main()
-{
- some_proc(20 as u32, 40 as u32);
-}