RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / opt41_pkg.ads
blobe73bc9319270c808409322bb482c7574fb3bb14e
1 with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
3 package Opt41_Pkg is
5 type Enum is (One, Two, Three, Four, Five, Six);
7 type Rec (D : Enum) is record
8 case D is
9 when One =>
10 I : Integer;
11 when Two | Five | Six =>
12 S : Unbounded_String;
13 case D is
14 when Two => B : Boolean;
15 when others => null;
16 end case;
17 when others =>
18 null;
19 end case;
20 end record;
22 type Rec_Ptr is access all Rec;
24 function Rec_Write (R : Rec) return Unbounded_String;
26 function Rec_Read (Str : String_Access) return Rec;
28 end Opt41_Pkg;