summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/atomic1.adb
blob: 59e1be20154649dca6ebecb909c85976cbd821ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- { dg-do compile }
-- { dg-options "-O0 -fdump-tree-gimple" }

with Atomic1_Pkg; use Atomic1_Pkg;

procedure Atomic1 is

   C_16 : constant R16 := (2, 3, 5, 7);
   C_32 : constant R32 := (1, 1, 2, 3, 5, 8, 13, 5);

begin
   V_16 := C_16;
   V_32 := C_32;
end;

-- { dg-final { scan-tree-dump-times "v_16" 1 "gimple"} }
-- { dg-final { scan-tree-dump-times "v_32" 1 "gimple"} }
-- { dg-final { cleanup-tree-dump "gimple" } }