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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [null_pointer_deref1.adb] - Blame information for rev 328

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

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run { target { ! "sparc*-sun-solaris2.11" } } }
2
-- { dg-options "-gnatp" }
3
 
4
-- This test requires architecture- and OS-specific support code for unwinding
5
-- through signal frames (typically located in *-unwind.h) to pass.  Feel free
6
-- to disable it if this code hasn't been implemented yet.
7
 
8
procedure Null_Pointer_Deref1 is
9
   type Int_Ptr is access all Integer;
10
 
11
   function Ident return Int_Ptr is
12
   begin
13
     return null;
14
   end;
15
 
16
   Data : Int_Ptr := Ident;
17
begin
18
   Data.all := 1;
19
exception
20
   when Constraint_Error | Storage_Error => null;
21
end;

powered by: WebSVN 2.1.0

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