--- /dev/null
+#include <stdlib.h>
+#include <math.h>
+#include "gwion_util.h"
+#include "gwion_ast.h"
+#include "oo.h"
+#include "env.h"
+#include "vm.h"
+#include "gwion.h"
+#include "type.h"
+#include "instr.h"
+#include "object.h"
+#include "value.h"
+#include "operator.h"
+#include "import.h"
+#include "ugen.h"
+#include "func.h"
+#include "gwi.h"
+
+GWION_IMPORT(fail_on_next_arg) {
+ GWI_BB(gwi_func_ini(gwi, "void", "test", (f_xfun)1))
+ GWI_BB(gwi_func_arg(gwi, "int", "i"))
+ GWI_BB(gwi_func_arg(gwi, "i;t", "j"))
+ GWI_BB(gwi_func_arg(gwi, "int", "j[]"))
+ return gwi_func_end(gwi, ae_flag_none);
+}
GWION_IMPORT(too_many_args) {
GWI_BB(gwi_func_ini(gwi, "int", "test", (f_xfun)1))
+ GWI_BB(gwi_func_arg(gwi, "int", "i[][]"))
GWI_BB(gwi_func_arg(gwi, "Int", "i"))
GWI_BB(gwi_func_end(gwi, 0))
return GW_OK;
--- /dev/null
+#include "gwion_util.h"
+#include "gwion_ast.h"
+#include "oo.h"
+#include "vm.h"
+#include "env.h"
+#include "type.h"
+#include "object.h"
+#include "instr.h"
+#include "gwion.h"
+#include "value.h"
+#include "operator.h"
+#include "import.h"
+#include "gwi.h"
+
+
+GWION_IMPORT(global_var_test) {
+ GWI_BB(gwi_item_ini(gwi,"SoemClass.child", "i"))
+ GWI_BB(gwi_item_end(gwi, ae_flag_none, NULL))
+ return GW_OK;
+}