From: fennecdjay Date: Thu, 10 Oct 2019 23:55:09 +0000 (+0200) Subject: :art: Update X-Git-Tag: nightly~2190 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=8a2a59cde1e63a185b318c6434afb689921a8676;p=gwion.git :art: Update --- diff --git a/src/parse/cpy_ast.c b/src/parse/cpy_ast.c index ab75269e..74ef7f83 100644 --- a/src/parse/cpy_ast.c +++ b/src/parse/cpy_ast.c @@ -257,10 +257,10 @@ ANN static void cpy_stmt_exp(MemPool p, const Stmt_Exp a, const Stmt_Exp src) { ANN static void cpy_stmt_flow(MemPool p, Stmt_Flow a,const Stmt_Flow src) { if(src->cond) - a->cond = cpy_exp(p, src->cond); + a->cond = cpy_exp(p, src->cond); if(src->body) - a->body = cpy_stmt(p, src->body); - a->is_do = src->is_do; + a->body = cpy_stmt(p, src->body); + a->is_do = src->is_do; } ANN static void cpy_stmt_code(MemPool p, Stmt_Code a, const Stmt_Code src) { @@ -308,6 +308,7 @@ ANN static void cpy_stmt_if(MemPool p, Stmt_If a, const Stmt_If src) { ANN static void cpy_stmt_jump(MemPool p NUSED, const Stmt_Jump a,const Stmt_Jump src) { a->name = src->name; + a->is_label = src->is_label; } ANN static Stmt cpy_stmt_case(MemPool p, const Stmt_Match src) { diff --git a/tests/error/enum_defined.gw b/tests/error/enum_defined.gw deleted file mode 100644 index 8cc8d79e..00000000 --- a/tests/error/enum_defined.gw +++ /dev/null @@ -1,5 +0,0 @@ -#! [contains] already declared - enum -{ - first -} int; diff --git a/tests/error/enum_defined3.gw b/tests/error/enum_defined3.gw deleted file mode 100644 index 39fc8189..00000000 --- a/tests/error/enum_defined3.gw +++ /dev/null @@ -1,5 +0,0 @@ -#! [contains] already declared - enum -{ - first -} blackhole; diff --git a/tests/tree/cpy_ast.gw b/tests/tree/cpy_ast.gw index 6ab60241..d9aa414d 100644 --- a/tests/tree/cpy_ast.gw +++ b/tests/tree/cpy_ast.gw @@ -19,5 +19,7 @@ class <~A~>C { match i { case _:; } enum { zero }; typedef int Int; + goto end; + end: } <~int~>C c;