]> Nishi Git Mirror - gwion.git/commitdiff
:art: Update
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 23:55:09 +0000 (01:55 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 23:55:09 +0000 (01:55 +0200)
src/parse/cpy_ast.c
tests/error/enum_defined.gw [deleted file]
tests/error/enum_defined3.gw [deleted file]
tests/tree/cpy_ast.gw

index ab75269e628c949199b956258e555c39dcf4a832..74ef7f83f2f885ef1c49e007058ddb68aa1b6b09 100644 (file)
@@ -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 (file)
index 8cc8d79..0000000
+++ /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 (file)
index 39fc818..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#! [contains] already declared
- enum
-{
-       first
-} blackhole;
index 6ab60241b7f1d2bbeb4e94f5346bde5ef6fdeac3..d9aa414d97e59223606771def7f67726316659a9 100644 (file)
@@ -19,5 +19,7 @@ class <~A~>C {
   match i { case _:; }
   enum { zero };
   typedef int Int;
+  goto end;
+  end:
 }
 <~int~>C c;