]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: Add some tests
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 15 Aug 2019 12:43:07 +0000 (14:43 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 15 Aug 2019 12:43:07 +0000 (14:43 +0200)
tests/error/array_ref_exp.gw [new file with mode: 0644]
tests/error/template_overload.gw [new file with mode: 0644]
tests/fptr/fptr_global0.gw [new file with mode: 0644]

diff --git a/tests/error/array_ref_exp.gw b/tests/error/array_ref_exp.gw
new file mode 100644 (file)
index 0000000..cfb9bcb
--- /dev/null
@@ -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 (file)
index 0000000..bcb667d
--- /dev/null
@@ -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 (file)
index 0000000..2076ed5
--- /dev/null
@@ -0,0 +1,3 @@
+class C {
+typedef global void global_fptr(int i);
+}