aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/6-ownership/overwrite_leaks.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conformance/6-ownership/overwrite_leaks.zc')
-rw-r--r--tests/conformance/6-ownership/overwrite_leaks.zc6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/conformance/6-ownership/overwrite_leaks.zc b/tests/conformance/6-ownership/overwrite_leaks.zc
deleted file mode 100644
index a9b0138..0000000
--- a/tests/conformance/6-ownership/overwrite_leaks.zc
+++ /dev/null
@@ -1,6 +0,0 @@
-// expect error: a: still owns an object; overwriting it would leak it
-// spec 6.8.5
-include rt;
-void pn(int x) { rt.put_n(x); rt.put_c(10); }
-fn main() { int* a = rt.new(1); a[0] = 1; a = rt.new(1); pn(a[0]); return 0; }
-// zc0: skip