]> Nishi Git Mirror - gwion.git/commitdiff
:art: More tests 151/head
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 18:39:13 +0000 (20:39 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 18:39:13 +0000 (20:39 +0200)
tests/new/test2.gw [new file with mode: 0644]
tests/tree/shred_lock.gw [new file with mode: 0644]

diff --git a/tests/new/test2.gw b/tests/new/test2.gw
new file mode 100644 (file)
index 0000000..da99f31
--- /dev/null
@@ -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 (file)
index 0000000..5c57951
--- /dev/null
@@ -0,0 +1,2 @@
+me.lock();
+me.unlock();