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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [aliased1.adb] - Rev 801

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

--  { dg-do compile }
--  { dg-options "-gnatws" }
 
procedure aliased1 is
 
  type E is (One, Two);
 
  type R (D : E := One) is record
    case D is
      when One =>
         I1 : Integer;
         I2 : Integer;
      when Two =>
         B1 : Boolean;
    end case;
  end record;
 
  type Data_Type is record
    Data : R;
  end record;
 
  type Array_Type is array (Natural range <>) of Data_Type;
 
  function Get return Array_Type is
    Ret : Array_Type (1 .. 2);
  begin
    return Ret;
  end;
 
  Object : aliased Array_Type := Get;
 
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.