view gcc/testsuite/gnat.dg/discr32.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 04ced10e8804
children
line wrap: on
line source

-- { dg-do run }
-- { dg-options "-gnatws" }

with Discr32_Pkg; use Discr32_Pkg;

procedure Discr32 is
begin

  if R1'Object_Size /= 32 then
    raise Program_Error;
  end if;

  if R2'Object_Size /= R'Object_Size then
    raise Program_Error;
  end if;

  if R3'Object_Size /= 64 then
    raise Program_Error;
  end if;

end;