view gcc/testsuite/gnat.dg/debug5.adb @ 138:fc828634a951

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:17:14 +0900
parents 04ced10e8804
children
line wrap: on
line source

-- { dg-do compile }
-- { dg-options "-g" }

procedure Debug5 is

   type Record_Type (L1, L2 : Natural) is record
      S1 : String (1 .. L1);
      case L2 is
         when 0      => null;
         when others => S2 : String (L1 .. L2);
      end case;
   end record;

   procedure Discard (R : Record_Type) is
   begin
      null;
   end Discard;

   R : constant Record_Type := (0, 0, others => <>);
begin
   Discard (R);
end Debug5;