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/] [concat_length.adb] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run }
2
 
3
procedure Concat_Length is
4
  type Byte is mod 256;
5
  for Byte'Size use 8;
6
  type Block is array(Byte range <>) of Integer;
7
 
8
  C0: Block(1..7) := (others => 0);
9
  C1: Block(8..255) := (others => 0);
10
  C2: Block := C0 & C1;
11
begin
12
   if C2'Length /= 255 then
13
      raise Program_Error;
14
   end if;
15
end;

powered by: WebSVN 2.1.0

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