URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do run }
|
-- { dg-do run }
|
|
|
procedure not_null is
|
procedure not_null is
|
type Not_Null_Int_Ptr is not null access all Integer;
|
type Not_Null_Int_Ptr is not null access all Integer;
|
|
|
generic
|
generic
|
F : Not_Null_Int_Ptr := null;
|
F : Not_Null_Int_Ptr := null;
|
package GPack is
|
package GPack is
|
end GPack;
|
end GPack;
|
|
|
begin
|
begin
|
declare
|
declare
|
pragma Warnings (Off, "*null not allowed in null-excluding objects");
|
pragma Warnings (Off, "*null not allowed in null-excluding objects");
|
pragma Warnings (Off, """Constraint_Error"" will be raised at run time");
|
pragma Warnings (Off, """Constraint_Error"" will be raised at run time");
|
package Inst_2 is new GPack (null);
|
package Inst_2 is new GPack (null);
|
pragma Warnings (On, "*null not allowed in null-excluding objects");
|
pragma Warnings (On, "*null not allowed in null-excluding objects");
|
pragma Warnings (On, """Constraint_Error"" will be raised at run time");
|
pragma Warnings (On, """Constraint_Error"" will be raised at run time");
|
begin
|
begin
|
null;
|
null;
|
end;
|
end;
|
exception
|
exception
|
when Constraint_Error =>
|
when Constraint_Error =>
|
null;
|
null;
|
end not_null;
|
end not_null;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.