aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/recast_nothing.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conformance/6-ownership/recast_nothing.zc')
-rw-r--r--tests/conformance/6-ownership/recast_nothing.zc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/conformance/6-ownership/recast_nothing.zc b/tests/conformance/6-ownership/recast_nothing.zc
new file mode 100644
index 0000000..e458a5f
--- /dev/null
+++ b/tests/conformance/6-ownership/recast_nothing.zc
@@ -0,0 +1,6 @@
+// expect error: x: isn't an owned object, so there is no ownership to recast
+// spec 6.7
+include rt;
+void pn(int x) { rt.put_n(x); rt.put_c(10); }
+fn main() { int x = 3; int* y = d*x; return 0; }
+// zc0: skip