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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 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.