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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [array12.adb] - Blame information for rev 816

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

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run }
2
 
3
procedure Array12 is
4
 
5
  function N return Integer is
6
  begin
7
    return 0;
8
  end;
9
 
10
  subtype Element is String (1 .. N);
11
  type Ptr is access all Element;
12
  type Vector is array (Positive range <>) of aliased Element;
13
 
14
  V : Vector (1..2);
15
 
16
begin
17
  if Ptr'(V(1)'Access) = V(2)'Access then
18
    raise Program_Error;
19
  end if;
20
end;

powered by: WebSVN 2.1.0

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