Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/discr2.adb @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do compile } with discr1; use discr1; package body discr2 is procedure Copy (Dataset : in out C_Type) is Last_Char : Positive := 300; begin while (Last_Char > 40) loop Last_Char := Last_Char - 1; end loop; Assign (Dataset.Designator (1 .. Last_Char)); end; procedure Dummy is begin null; end Dummy; end discr2;