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

Subversion Repositories openrisc

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

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

--  { dg-do run }
 
procedure not_null is
   type Not_Null_Int_Ptr is not null access all Integer;
 
   generic
      F : Not_Null_Int_Ptr := null;
   package GPack is
   end GPack;
 
begin
   declare
      pragma Warnings (Off, "*null not allowed in null-excluding objects");
      package Inst_2 is new GPack (null);
      pragma Warnings (On, "*null not allowed in null-excluding objects");
   begin
      null;
   end;
exception
   when Constraint_Error =>
      null;
end not_null;
 

Go to most recent revision | 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.