aboutsummaryrefslogtreecommitdiff
path: root/tests/errors/recast_plain.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/recast_plain.zc')
-rw-r--r--tests/errors/recast_plain.zc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/errors/recast_plain.zc b/tests/errors/recast_plain.zc
new file mode 100644
index 0000000..7d26f3c
--- /dev/null
+++ b/tests/errors/recast_plain.zc
@@ -0,0 +1,6 @@
+namespace;
+include rt;
+
+// expect: p: isn't an owned object, so there is no ownership to recast
+word sink;
+fn main() { word p = m*rt.new(4); sink = d*p; return 0; }