2010-04-20 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gnat.dg / slice2.adb
blobab73074313e7c221685d17e6d02e8591eb71cb4f
1 -- { dg-do compile }
2 -- { dg-options "-O" }
4 package body Slice2 is
6 function F (I : R1) return R2 is
7 Val : R2;
8 begin
9 Val.Text (1 .. 8) := I.Text (1 .. 8);
10 return Val;
11 end F;
13 end Slice2;