OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [array10.adb] - Diff between revs 304 and 338

Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 338
-- { dg-do run }
-- { dg-do run }
-- Verify that an array of non-aliased zero-sized element is zero-sized
-- Verify that an array of non-aliased zero-sized element is zero-sized
 
 
procedure Array10 is
procedure Array10 is
 
 
  type Rec is null record;
  type Rec is null record;
 
 
  type Arr1 is array (1..8) of Rec;
  type Arr1 is array (1..8) of Rec;
  type Arr2 is array (Long_Integer) of Rec;
  type Arr2 is array (Long_Integer) of Rec;
 
 
  R : Rec;
  R : Rec;
  A1 : Arr1;
  A1 : Arr1;
  A2 : Arr2;
  A2 : Arr2;
 
 
begin
begin
  if Rec'Size /= 0 then
  if Rec'Size /= 0 then
    raise Program_Error;
    raise Program_Error;
  end if;
  end if;
  if Arr1'Size /= 0 then
  if Arr1'Size /= 0 then
    raise Program_Error;
    raise Program_Error;
  end if;
  end if;
  if Arr2'Size /= 0 then
  if Arr2'Size /= 0 then
    raise Program_Error;
    raise Program_Error;
  end if;
  end if;
end;
end;
 
 

powered by: WebSVN 2.1.0

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