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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gnat.dg/] [boolean_expr2.adb] - Diff between revs 304 and 384

Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 384
-- { dg-do run }
-- { dg-do run }
 
 
procedure Boolean_Expr2 is
procedure Boolean_Expr2 is
 
 
  function Ident_Bool (B : Boolean) return Boolean is
  function Ident_Bool (B : Boolean) return Boolean is
  begin
  begin
    return B;
    return B;
  end;
  end;
 
 
begin
begin
  if Boolean'Succ (Ident_Bool(False)) /= True then
  if Boolean'Succ (Ident_Bool(False)) /= True then
    raise Program_Error;
    raise Program_Error;
  end if;
  end if;
 
 
  if Boolean'Pred (Ident_Bool(True)) /= False then
  if Boolean'Pred (Ident_Bool(True)) /= False then
    raise Program_Error;
    raise Program_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.