aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index 3f3f7ad..8991403 100644
--- a/pc.y
+++ b/pc.y
@@ -188,6 +188,9 @@ sub_prog_head
tmp->func_info->argc = i;
assert(tmp->func_info->argv = malloc(i * sizeof(int)));
+ print_tree($3);
+ assert(!set_func_types($3, tmp->func_info->argv, i));
+
tmp->var_type = $5;
cur_scope->ret_var = scope_insert(cur_scope, $2);