view gcc/testsuite/gnat.dg/slice2.adb @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

-- { dg-do compile }
-- { dg-options "-O" }

package body Slice2 is

  function F (I : R1) return R2 is
    Val : R2;
  begin
    Val.Text (1 .. 8) := I.Text (1 .. 8);
    return Val;
  end F;

end Slice2;