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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
package Discr34_Pkg is
2
 
3
   function N return Natural;
4
 
5
   type Enum is (One, Two);
6
 
7
   type Rec (D : Enum := One) is record
8
      case D is
9
         when One => S : String (1 .. N);
10
         when Two => null;
11
      end case;
12
   end record;
13
 
14
   function F return Rec;
15
 
16
end Discr34_Pkg;

powered by: WebSVN 2.1.0

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