URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
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;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.