tests: audit source boundaries and cancellation join twins
This commit is contained in:
1 parent
5371eb7a2f
commit
50d1bb2c4b
20 files changed
+363
-10
No files matched your search
@@ -0,0 +1,10 @@
|
||||
// expect: reject E7005
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md §17
|
||||
module test.buffers
|
||||
fn main(heap: cap<mem.alloc>) -> u64 effects [mem.alloc] {
|
||||
let data = buffer.new<u64>(1, heap) or trap;
|
||||
let n = buffer.len(data); // diagnostic here: data);
|
||||
buffer.free(move data) or trap;
|
||||
return 42;
|
||||
}
|
||||
Reference in new issue
Block a user