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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [discr22.adb] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
-- { dg-options "-gnatws" }
3
 
4
procedure Discr22 is
5
 
6
   subtype Precision is Integer range 1 .. 5;
7
 
8
   type Rec(D1 : Precision; D2 : Integer) is record
9
      case D1 is
10
         when 1 => I : Integer;
11
         when others => null;
12
      end case;
13
   end record;
14
   for Rec use record
15
      D1 at 0 range 0 .. 7;
16
   end record;
17
 
18
   P : Precision;
19
   X : Rec(P, 0);
20
 
21
begin
22
   null;
23
end;

powered by: WebSVN 2.1.0

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