1 2 3 4 5 6 7 8 9 10 11 12 13 14
-- { dg-do compile } -- { dg-options "-gnatws" } package body Synchronized1 with SPARK_Mode, Refined_State => (State => Curr_State) is type Reactor_State is (Stopped, Working) with Atomic; Curr_State : Reactor_State with Async_Readers, Async_Writers; procedure Force_Body is null; end Synchronized1;