RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / discr21_pkg.ads
blobd156df625170fd157287089893eda555ec6b5839
1 package Discr21_Pkg is
3 type Position is record
4 x,y,z : Float;
5 end record;
7 type Dim is (Two, Three);
9 type VPosition (D: Dim := Three) is record
10 x, y : Float;
11 case D is
12 when Two => null;
13 when Three => z : Float;
14 end case;
15 end record;
17 function To_Position (x, y, z : Float) return VPosition;
19 end Discr21_Pkg;