Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gnat.dg / loop_address.adb
blobe8e93d440366b88a0309e7fe9096c40e2256baa0
1 -- { dg-do compile }
2 -- { dg-options "-O -gnatws" }
4 -- PR middle-end/35136
6 pragma Extend_System(AUX_DEC);
7 with System;
9 procedure Loop_Address is
11 function Y(E : Integer) return String is
12 begin
13 return "";
14 end Y;
16 function X(C : in System.Address) return String is
17 D : Integer;
18 for D use at C;
19 begin
20 return Y(D);
21 end X;
23 A : System.Address;
24 B : String := "";
26 begin
27 for I in 0..1 loop
28 B := X(System."+"(A, I));
29 end loop;
30 end;