From 33fcf676128426f2ac9a4730d63fa481bb351518 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 18 Aug 2024 00:07:56 +0300 Subject: make check works again --- tests/ptr/ptr.ek | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/ptr/ptr.ek (limited to 'tests/ptr/ptr.ek') diff --git a/tests/ptr/ptr.ek b/tests/ptr/ptr.ek new file mode 100644 index 0000000..86f413c --- /dev/null +++ b/tests/ptr/ptr.ek @@ -0,0 +1,30 @@ +typedef bool {} + +typedef i27 { + cmp![]; + eq(i27 a, i27 b => bool) { + return a == b; + } +} + +typedef ptr { + cmp![]; + eq(ptr a, ptr b => bool) { + return a == b; + } +} + +typedef test[cmp T] {} + +define cmp[] { + eq(cmp, cmp => bool); +} + +main() +{ + const a = test![i27]{}; + 20.eq(20); + + const b = test![*i27]{}; + a&.eq(a&); +} -- cgit v1.3