tests: extend audited rejection twins through tasks and locks
This commit is contained in:
1 parent
e4aacef48c
commit
272aebfd32
16 files changed
+157
-13
No files matched your search
@@ -3,6 +3,7 @@
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
module demo.call_waiting_function
|
||||
// AIR twin: phase3/reject/sync_call_waiting_function.air
|
||||
|
||||
fn pause() -> void
|
||||
effects [task.wait]
|
||||
@@ -14,7 +15,7 @@ effects [task.wait]
|
||||
{
|
||||
let m = mutex.make(0u64);
|
||||
lock ref m as c {
|
||||
pause();
|
||||
pause(); // diagnostic here
|
||||
*c = 1;
|
||||
} cancelled {}
|
||||
mutex.take(move m)
|
||||
|
||||
Reference in new issue
Block a user