aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/borrowmove.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/programs/borrowmove.zc')
-rw-r--r--tests/programs/borrowmove.zc7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/programs/borrowmove.zc b/tests/programs/borrowmove.zc
index b0f0e42..e229fab 100644
--- a/tests/programs/borrowmove.zc
+++ b/tests/programs/borrowmove.zc
@@ -1,2 +1,5 @@
-fn put(.m box, int v) { int* c = new(int); *c = v; box[0] = c; return 0; }
-fn main() { let b = new(1); put(b, 6); put_n(*(b[0] as int*)); put_c(10); return 0; }
+namespace;
+include rt;
+
+fn put(.m box, int v) { int* c = rt.new(int); *c = v; box[0] = c; return 0; }
+fn main() { let b = rt.new(1); put(b, 6); rt.put_n(*(b[0] as int*)); rt.put_c(10); return 0; }