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

Subversion Repositories openrisc

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

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

--  { dg-do compile }
 
procedure parameterlessfunc is
  type Byte is mod 256;
  type Byte_Array is array(Byte range <>) of Byte;
  subtype Index is Byte range 0..7;
  subtype Small_Array is Byte_Array(Index);
 
  function F return Byte_Array is
  begin
    return (0..255=>0);
  end F;
 
  B5: Small_Array := F(Index);
begin
  null;
end parameterlessfunc;
 

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.