view gcc/testsuite/gnat.dg/rep_clause7.adb @ 140:4e440907fcbf

copy CbC goto flang in cfgexpand remove some CbC unnecessary code
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 14 Nov 2018 00:24:45 +0900
parents 84e7813d76e9
children
line wrap: on
line source

procedure Rep_Clause7 is

   subtype Msg is String (1 .. 3);

   type Root is tagged record
     B : Boolean;
     M : Msg;
   end record;
   for Root use record
     B at 0 range 64 .. 64;
     M at 0 range 65 .. 88;
   end record;

   type Ext is new Root with null record;

   procedure Inner (T : Msg) is
   begin
      null;
   end;

   pragma Warnings (Off);
   T1 : Root;
   T2 : Ext;
   pragma Warnings (On);

begin
   Inner (T1.M);
   Inner (T2.M);
end;