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

package body Discr14 is

   procedure ASSIGN( TARGET : in out SW_TYPE_INFO ;
                     SOURCE : in     SW_TYPE_INFO ) is
   begin
      TARGET := new T_SW_TYPE_DESCRIPTOR( SOURCE.SW_TYPE, SOURCE.DIMENSION );
   end ASSIGN;

end Discr14;