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.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [not_null.adb] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
--  { dg-do run }
2
 
3
procedure not_null is
4
   type Not_Null_Int_Ptr is not null access all Integer;
5
 
6
   generic
7
      F : Not_Null_Int_Ptr := null;
8
   package GPack is
9
   end GPack;
10
 
11
begin
12
   declare
13
      pragma Warnings (Off, "*null not allowed in null-excluding objects");
14
      pragma Warnings (Off, """Constraint_Error"" will be raised at run time");
15
      package Inst_2 is new GPack (null);
16
      pragma Warnings (On, "*null not allowed in null-excluding objects");
17
      pragma Warnings (On, """Constraint_Error"" will be raised at run time");
18
   begin
19
      null;
20
   end;
21
exception
22
   when Constraint_Error =>
23
      null;
24
end not_null;

powered by: WebSVN 2.1.0

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