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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do compile }
2
 
3
procedure Discr5 is
4
 
5
   type Enum is (Ten, Twenty);
6
   for Enum use (10, 20);
7
   type Arr is array (Enum range <>) of Integer;
8
   type Rec (Discr: Enum := Ten) is record
9
      case Discr is
10
         when others =>
11
            A: Arr (Ten .. Discr);
12
      end case;
13
   end record;
14
 
15
begin
16
   null;
17
end;

powered by: WebSVN 2.1.0

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