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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [hyper_flat.adb] - Blame information for rev 696

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do run }
2
-- { dg-options "-gnatp" }
3
 
4
procedure Hyper_Flat is
5
 
6
   type Unsigned is mod 2 ** 32;
7
   x : Integer := 0;
8
   pragma Volatile (X);
9
 
10
   S : constant String := (1 .. X - 3 => 'A');
11
   --  Hyper-flat null string
12
 
13
begin
14
   if Unsigned'(S'Length) /= 0 then
15
      raise Program_Error;
16
   end if;
17
end;

powered by: WebSVN 2.1.0

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