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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [discr7.adb] - Blame information for rev 304

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

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
 
3
procedure Discr7 is
4
 
5
  subtype Index is Natural range 0..5;
6
  type BitString is array(Index range <>) of Boolean;
7
  pragma Pack(BitString);
8
 
9
  function Id (I : Integer) return Integer is
10
  begin
11
    return I;
12
  end;
13
 
14
  type E(D : Index) is record
15
    C : BitString(1..D);
16
  end record;
17
 
18
  subtype E0 is E(Id(0));
19
 
20
  function F return E0 is
21
  begin
22
    return E'(D=>0, C=>(1..0=>FALSE));
23
  end;
24
 
25
begin
26
  null;
27
end;

powered by: WebSVN 2.1.0

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