OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [enum1.adb] - Diff between revs 304 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 338
-- { dg-do run }
-- { dg-do run }
-- { dg-options "-O2" }
-- { dg-options "-O2" }
 
 
with Enum1_Pkg; use Enum1_Pkg;
with Enum1_Pkg; use Enum1_Pkg;
 
 
procedure Enum1 is
procedure Enum1 is
 
 
  function Cond return Boolean is
  function Cond return Boolean is
  begin
  begin
    return My_N = Two or My_N = Three;
    return My_N = Two or My_N = Three;
  end;
  end;
 
 
begin
begin
  if Cond then
  if Cond then
    raise Constraint_Error;
    raise Constraint_Error;
  end if;
  end if;
end;
end;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.