blob: 42bf8830d535e0f896b73b03a99653abfc1d9033 [file] [log] [blame]
package body Opt100_Pkg is
function Func (R : Rec) return Integer is
begin
if R in Small_Rec then
case R.K is
when A => return 0;
when B => return 1;
when C => return 2;
when others => raise Program_Error;
end case;
else
return -1;
end if;
end;
end Opt100_Pkg;