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/] [discr12.adb] - Rev 313

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

-- { dg-do compile }
 
with Discr12_Pkg; use Discr12_Pkg;
 
procedure Discr12 is
 
  subtype Small_Int is Integer range 1..10;
 
  package P is
 
    type PT_W_Disc (D : Small_Int) is private;
 
    type Rec_W_Private (D1 : Integer) is
    record
      C : PT_W_Disc (D1);
    end record;
 
    type Rec_01 (D3 : Integer) is
    record
      C1 : Rec_W_Private (D3);
    end record;
 
    type Arr is array (1 .. 5) of Rec_01(Dummy(0));
 
  private
    type PT_W_Disc (D : Small_Int) is 
    record
      Str : String (1 .. D);
    end record;
 
  end P;
 
begin
  Null;
end;
 

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

powered by: WebSVN 2.1.0

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