PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gnat.dg / validity_check2_pkg.ads
blobc9b6a01e191c73c711d04e09286b758ac0e8a885
1 with Ada.unchecked_conversion;
3 package Validity_Check2_Pkg is
5 type Op_Code is (One, Two, Three, Four);
7 subtype Valid_Msg is Integer range 0 .. 15;
9 function Op_Code_To_Msg is
10 new Ada.Unchecked_Conversion (Source => Op_code, Target => Valid_Msg);
12 type Rec is record
13 Code : Op_Code;
14 end record;
16 end Validity_Check2_Pkg;