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/] [concat1.adb] - Rev 304

Compare with Previous | Blame | View Log

-- { dg-do run }
-- { dg-options "-O2" }
 
with Concat1_Pkg; use Concat1_Pkg;
 
procedure Concat1 is
 
  Ident_1 : Integer := Ident (1);
  Ident_2 : Integer := Ident (2);
  Ident_5 : Integer := Ident (5);
 
  type Arr is array (Integer range <>) of Integer;
  A : Arr (1..10);
 
begin
  A := (1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
  A := 0 & A(Ident_1..Ident_2) & A(Ident_1..Ident_2) & A(Ident_1..Ident_5);
  if A /= (0, 1, 2, 1, 2, 1, 2, 3, 4, 5) then
    raise Program_Error;
  end if;
end;
 

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.