Commit 7eabb9c2060f6fb4c0ea9d9e3f8bcb104c291c40

Thomas de Grivel 2023-03-15T21:35:32

cfn

diff --git a/libc3/cfn.c b/libc3/cfn.c
index f4c4a5f..8492cc2 100644
--- a/libc3/cfn.c
+++ b/libc3/cfn.c
@@ -87,6 +87,7 @@ s_cfn * cfn_copy (const s_cfn *cfn, s_cfn *dest)
   list_copy(cfn->arg_types, &dest->arg_types);
   dest->arity = cfn->arity;
   dest->result_type = cfn->result_type;
+  dest->ptr = cfn->ptr;
   return dest;
 }
 
diff --git a/test/ic3/op.out.expected b/test/ic3/op.out.expected
index 7aac999..dc3a265 100644
--- a/test/ic3/op.out.expected
+++ b/test/ic3/op.out.expected
@@ -1,3 +1,8 @@
 quote 1 + 2
-
+quote 1 + 2 / 3
+quote 1 + 2 / 3 * 4
+quote 1 + 2 / 3 * 4 - 5
 3
+1
+4
+-1