OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [enum1.adb] - Blame information for rev 484

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run }
2
-- { dg-options "-O2" }
3
 
4
with Enum1_Pkg; use Enum1_Pkg;
5
 
6
procedure Enum1 is
7
 
8
  function Cond return Boolean is
9
  begin
10
    return My_N = Two or My_N = Three;
11
  end;
12
 
13
begin
14
  if Cond then
15
    raise Constraint_Error;
16
  end if;
17
end;

powered by: WebSVN 2.1.0

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