From 09e20e7888a390dd4a529170893ec4107c3a540e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 26 May 2020 12:10:23 +0200 Subject: [PATCH] :white_check_mark: ';' after fptr def --- tests/error/fptr_other_class.gw | 4 ++-- tests/error/func_ptr_empty.gw | 2 +- tests/error/pointer_outside_class.gw | 2 +- tests/error/pointer_unknown.gw | 2 +- tests/error/ptr_arg_0_size.gw | 2 +- tests/error/ptr_arg_array.gw | 2 +- tests/error/ptr_defined.gw | 2 +- tests/tree/fptr_other_class.gw | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/error/fptr_other_class.gw b/tests/error/fptr_other_class.gw index 7a97e562..ebc54691 100644 --- a/tests/error/fptr_other_class.gw +++ b/tests/error/fptr_other_class.gw @@ -1,8 +1,8 @@ #! [contains] can't use non global fptr of other class class C { - typedef void t_ptr() {} + typedef void t_ptr(); } class D { - typedef void t_ptr() {} + typedef void t_ptr(); C->t_ptr ptr; } diff --git a/tests/error/func_ptr_empty.gw b/tests/error/func_ptr_empty.gw index 3b59ce85..309c711b 100644 --- a/tests/error/func_ptr_empty.gw +++ b/tests/error/func_ptr_empty.gw @@ -1,4 +1,4 @@ #! [contains] NullPtrException -typedef void Test() +typedef void Test(); Test test; test(); diff --git a/tests/error/pointer_outside_class.gw b/tests/error/pointer_outside_class.gw index cd1c9327..bc989edc 100644 --- a/tests/error/pointer_outside_class.gw +++ b/tests/error/pointer_outside_class.gw @@ -1,2 +1,2 @@ #! [contains] can only be used at class scope -typedef static void my_fun(){} +typedef static void my_fun(); diff --git a/tests/error/pointer_unknown.gw b/tests/error/pointer_unknown.gw index 66ddfcad..da39d63f 100644 --- a/tests/error/pointer_unknown.gw +++ b/tests/error/pointer_unknown.gw @@ -1,2 +1,2 @@ #! [contains] unknown type - typedef unknown_type my_fun(){} +typedef unknown_type my_fun(); diff --git a/tests/error/ptr_arg_0_size.gw b/tests/error/ptr_arg_0_size.gw index 1f0229b6..cb508cae 100644 --- a/tests/error/ptr_arg_0_size.gw +++ b/tests/error/ptr_arg_0_size.gw @@ -1,2 +1,2 @@ #! [contains] cannot declare variables of size '0' - typedef void my_func(void arg){} +typedef void my_func(void arg); diff --git a/tests/error/ptr_arg_array.gw b/tests/error/ptr_arg_array.gw index ba2ca796..3a8a23a5 100644 --- a/tests/error/ptr_arg_array.gw +++ b/tests/error/ptr_arg_array.gw @@ -1,2 +1,2 @@ #! [contains] must be defined with empty - typedef void my_func (int i[4]){} +typedef void my_func (int i[4]); diff --git a/tests/error/ptr_defined.gw b/tests/error/ptr_defined.gw index bfb6abf1..1338a775 100644 --- a/tests/error/ptr_defined.gw +++ b/tests/error/ptr_defined.gw @@ -1,3 +1,3 @@ #! [contains] has already been defined in the same scope int i; -typedef void i(){} +typedef void i(); diff --git a/tests/tree/fptr_other_class.gw b/tests/tree/fptr_other_class.gw index 7a97e562..ebc54691 100644 --- a/tests/tree/fptr_other_class.gw +++ b/tests/tree/fptr_other_class.gw @@ -1,8 +1,8 @@ #! [contains] can't use non global fptr of other class class C { - typedef void t_ptr() {} + typedef void t_ptr(); } class D { - typedef void t_ptr() {} + typedef void t_ptr(); C->t_ptr ptr; } -- 2.43.0