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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [enum1.adb] - Rev 696

Compare with Previous | Blame | View Log

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

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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