From 9f715dcf261c5edc35092f33ad692c1367ab57ab Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 20:39:13 +0200 Subject: [PATCH] :art: More tests --- tests/new/test2.gw | 8 ++++++++ tests/tree/shred_lock.gw | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 tests/new/test2.gw create mode 100644 tests/tree/shred_lock.gw diff --git a/tests/new/test2.gw b/tests/new/test2.gw new file mode 100644 index 00000000..da99f314 --- /dev/null +++ b/tests/new/test2.gw @@ -0,0 +1,8 @@ +class <~A~>C { + typedef static void func_t<~A~>(A a); + fun static void myfunc<~A~>(A a) { <<< a >>>; } + myfunc @=> static func_t ptr; + ptr(1); +} + +<~int~>C c; diff --git a/tests/tree/shred_lock.gw b/tests/tree/shred_lock.gw new file mode 100644 index 00000000..5c579516 --- /dev/null +++ b/tests/tree/shred_lock.gw @@ -0,0 +1,2 @@ +me.lock(); +me.unlock(); -- 2.43.0