aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/discr2.adb
blob: 0f03a0fd955e2798166796c5b4f71302d18b190c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--  { dg-do compile }

with discr1; use discr1;

package body discr2 is
  
  procedure Copy (Dataset : in out C_Type) is
    Last_Char : Positive := 300;
  begin
    while (Last_Char > 40) loop
      Last_Char := Last_Char - 1;
    end loop;
    
    Assign (Dataset.Designator (1 .. Last_Char));
  end;
  
  procedure Dummy is
  begin
    null;
  end Dummy;

end discr2;