; expect: run ; phase: 3 ; spec: docs/spec/04-concurrency-and-atomics.md ยง37.3 ; schedules: 32 ; result: 42 module test.shield_index air 0 lang 0.1 features [cancellation, effects, ownership, tasks] fn @main() -> u8 effects [] entry: %a = task.shield.begin %b = task.shield.begin %c = task.shield.begin task.shield.end %c %d = task.shield.begin task.shield.end %d task.shield.end %b task.shield.end %a %answer = const.u8 42 ret %answer