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/] [specs/] [access_constant.ads] - Blame information for rev 316

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

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
package Access_Constant is
3
 
4
   c: aliased constant integer := 3;
5
 
6
   type const_ptr is access constant integer;
7
   cp : const_ptr := c'access;
8
 
9
   procedure inc (var_ptr: access integer :=
10
     cp)  -- { dg-error "access-to-constant" }
11
      is abstract;
12
 
13
end Access_Constant;

powered by: WebSVN 2.1.0

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