From 36486bb9005efa0bcc367fd00a4657c3a41a7cde Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 16:12:47 +0200 Subject: [PATCH] :art: Test fptr --- tests/fptr/fptr_class_type.gw | 2 ++ tests/fptr/fptr_tmpl_cast.gw | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 tests/fptr/fptr_class_type.gw create mode 100644 tests/fptr/fptr_tmpl_cast.gw 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; +} -- 2.43.0