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

package body Rep_Clause2 is

   procedure Assign (From : Data; Offset : Positive; I : Index; To : out Bit_Array) is
   begin
     To (Offset .. Offset + 7) := Bit_Array (Conv (From.D(I).S.N));
   end;

end Rep_Clause2;