]> Nishi Git Mirror - gwion.git/commitdiff
:art: Test fptr
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:12:47 +0000 (16:12 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:12:47 +0000 (16:12 +0200)
tests/fptr/fptr_class_type.gw [new file with mode: 0644]
tests/fptr/fptr_tmpl_cast.gw [new file with mode: 0644]

diff --git a/tests/fptr/fptr_class_type.gw b/tests/fptr/fptr_class_type.gw
new file mode 100644 (file)
index 0000000..6b7a1b4
--- /dev/null
@@ -0,0 +1,2 @@
+typedef void ptr_t();
+ptr_t t @=> ptr_t t2;
diff --git a/tests/fptr/fptr_tmpl_cast.gw b/tests/fptr/fptr_tmpl_cast.gw
new file mode 100644 (file)
index 0000000..b2271ef
--- /dev/null
@@ -0,0 +1,5 @@
+class C {
+  typedef void ptr_t<~A~>();
+  fun void test<~A~>() {}
+  test $ ptr_t;
+}