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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do compile }
2
-- { dg-options "-gnatws" }
3
 
4
procedure Aggr17 is
5
 
6
   type Enum is (A, B);
7
 
8
   type Rec (D : Enum := Enum'First) is record
9
      case D is
10
         when A => X : Integer;
11
         when B => null;
12
      end case;
13
   end record;
14
   for Rec'Size use 128;
15
   pragma Volatile (Rec);
16
 
17
   type Config_T (D : Enum := Enum'First) is record
18
      N : Natural;
19
      R : Rec (D);
20
   end record;
21
 
22
   C : constant Config_T := (D => A, N => 1, R => (D => A, X => 0));
23
 
24
   type Arr is array (Natural range 1 .. C.N) of Boolean;
25
 
26
begin
27
   null;
28
end;

powered by: WebSVN 2.1.0

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