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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [array1.adb] - Blame information for rev 696

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
--  { dg-do compile }
2
--  { dg-options "-gnatws" }
3
 
4
package body array1 is
5
 
6
  subtype Small is Integer range 1 .. MAX;
7
 
8
  type LFT is record
9
    RIC_ID : RIC_TYPE;
10
  end record;
11
 
12
  LF : array (RIC_TYPE, Small) of LFT;
13
 
14
  procedure Foo (R : RIC_TYPE) is
15
    L : Small;
16
    T : LFT renames LF (R, L);
17
  begin
18
    Start_Timer (T'ADDRESS);
19
  end;
20
 
21
  procedure Bar (A : Integer; R : RIC_TYPE) is
22
    S : LFT renames LF (R, A);
23
  begin
24
    null;
25
  end;
26
 
27
  procedure Start_Timer (Q : SYSTEM.ADDRESS) is
28
  begin
29
    null;
30
  end;
31
 
32
end array1;

powered by: WebSVN 2.1.0

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