From: fennecdjay Date: Thu, 15 Aug 2019 12:43:07 +0000 (+0200) Subject: :white_check_mark: Add some tests X-Git-Tag: nightly~2279 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fbaa17904f2630093fe149af91047c8729cff749;p=gwion.git :white_check_mark: Add some tests --- diff --git a/tests/error/array_ref_exp.gw b/tests/error/array_ref_exp.gw new file mode 100644 index 00000000..cfb9bcb8 --- /dev/null +++ b/tests/error/array_ref_exp.gw @@ -0,0 +1,2 @@ +#! [contains] ref array must not have array expression +int @my_array[2]; diff --git a/tests/error/template_overload.gw b/tests/error/template_overload.gw new file mode 100644 index 00000000..bcb667d0 --- /dev/null +++ b/tests/error/template_overload.gw @@ -0,0 +1,3 @@ +#! [contains] must overload template function with template +fun void test<~A~>(int i){} +fun void test(int i, float f){} diff --git a/tests/fptr/fptr_global0.gw b/tests/fptr/fptr_global0.gw new file mode 100644 index 00000000..2076ed56 --- /dev/null +++ b/tests/fptr/fptr_global0.gw @@ -0,0 +1,3 @@ +class C { +typedef global void global_fptr(int i); +}