rt_gccstream/gcc/testsuite/gnat.dg/atomic2.adb

12 lines
214 B
Ada

-- { dg-do compile }
procedure Atomic2 is
type Big is array (1..4) of Integer;
type Arr is array (1..10) of Big;
pragma Atomic_Components (Arr); -- { dg-warning "cannot be guaranteed" }
begin
null;
end;