tests: extend rejection twins across public semantic features
This commit is contained in:
1 parent
272aebfd32
commit
06d8a1a76a
32 files changed
+396
-22
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// An island result contains atomic<u64>, a foreign mutable edge forbidden by IslandSafe.
|
||||
// expect: reject E2111
|
||||
// phase: 6
|
||||
// spec: docs/spec/03-memory-model.md §22
|
||||
// AIR twin: phase5/reject/island_content.air
|
||||
module test.source_island_content
|
||||
fn main(heap: cap<mem.alloc>) -> u64
|
||||
effects [mem.alloc]
|
||||
{
|
||||
let c = atomic.new(0u64);
|
||||
let isl = island.create(move c, heap) or trap; // diagnostic here: island.create
|
||||
island.destroy(move isl);
|
||||
0
|
||||
}
|
||||
Reference in new issue
Block a user