summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/addr5.adb
blob: e331dfdc09eeac60fd3fa951308f5784ad54a3d9 (plain)
1
2
3
4
5
6
7
8
9
10
-- { dg-do compile }
-- { dg-options "-g" }

procedure Addr5 (Len : Integer) is
  S : aliased String (1 .. Len) := (others => ' ');
  C : Character;
  for C'Address use S'Address;
begin
  null;
end;