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;