Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / array12.adb
blob3748d5ec206b82583e8bea08962d5f6ce5045289
1 -- { dg-do run }
3 procedure Array12 is
5 function N return Integer is
6 begin
7 return 0;
8 end;
10 subtype Element is String (1 .. N);
11 type Ptr is access all Element;
12 type Vector is array (Positive range <>) of aliased Element;
14 V : Vector (1..2);
16 begin
17 if Ptr'(V(1)'Access) = V(2)'Access then
18 raise Program_Error;
19 end if;
20 end;