From: fennecdjay Date: Thu, 10 Oct 2019 14:12:47 +0000 (+0200) Subject: :art: Test fptr X-Git-Tag: nightly~2198^2~18 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=36486bb9005efa0bcc367fd00a4657c3a41a7cde;p=gwion.git :art: Test fptr --- diff --git a/tests/fptr/fptr_class_type.gw b/tests/fptr/fptr_class_type.gw new file mode 100644 index 00000000..6b7a1b46 --- /dev/null +++ b/tests/fptr/fptr_class_type.gw @@ -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 index 00000000..b2271ef1 --- /dev/null +++ b/tests/fptr/fptr_tmpl_cast.gw @@ -0,0 +1,5 @@ +class C { + typedef void ptr_t<~A~>(); + fun void test<~A~>() {} + test $ ptr_t; +}