You've already forked libadalang
mirror of
https://github.com/AdaCore/libadalang.git
synced 2026-02-12 12:28:54 -08:00
16 lines
333 B
Ada
16 lines
333 B
Ada
procedure Test is
|
|
type Arr is array (Positive range <>) of Integer;
|
|
|
|
A : Arr := (1 .. 10 => 0);
|
|
B : Boolean := True;
|
|
begin
|
|
A (2) := B;
|
|
pragma Test_Statement (Expect_Fail => True);
|
|
|
|
B := A (2);
|
|
pragma Test_Statement (Expect_Fail => True);
|
|
|
|
A (B) := 2;
|
|
pragma Test_Statement (Expect_Fail => True);
|
|
end Test;
|