aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/synchronized1.adb
blob: d07c351654e31152ba35720c2da33f386de62415 (plain)
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;