aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/thunk2.ads
blob: 05dc45bc74b818266f7c403acafc95c3eac091a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Thunk2_Pkg; use Thunk2_Pkg;

package Thunk2 is

  type Ext is new Root and I with record
    S : Unbounded_String;
  end record;

  overriding function Element (Self : Ext; Name : String) return Ext;

end Thunk2;