1-- { dg-excess-errors "cannot generate code" }
2
3package Lto12_Pkg is
4
5  type R (Kind  : Boolean := False) is record
6    case Kind is
7      when True => I : Integer;
8      when others => null;
9    end case;
10  end record;
11
12  function F return R;
13
14end Lto12_Pkg;
15