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/] [specs/] [empty_variants.ads] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
--  { dg-do compile }
2
--  { dg-options "-gnatdF" }
3
 
4
package Empty_Variants is
5
 
6
   type Rec (D : Integer := 1) is record
7
      case D is
8
         when 1 =>
9
            I : Integer;
10
         when 2 .. 5 =>
11
            J : Integer;
12
            K : Integer;
13
         when 6 =>
14
            null;
15
         when 7 .. 8 =>
16
            null;
17
         when others =>
18
            L : Integer;
19
            M : Integer;
20
            N : Integer;
21
      end case;
22
   end record;
23
 
24
   R : Rec;
25
 
26
   I : Integer := R.I;
27
   J : Integer := R.J;
28
   K : Integer := R.K;
29
   L : Integer := R.L;
30
   M : Integer := R.L;
31
 
32
end Empty_Variants;

powered by: WebSVN 2.1.0

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