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

package body Discr9 is

   procedure Proc (From : in R; To : out R) is
   begin
      To := R'(D1 => False, D2 => From.D2, Field => From.Field);
   end;

end Discr9;