summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/bip_prim_func.adb
blob: 6529fe50a5a1cc10dddc0eb83850fce8a6092f92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--  { dg-do compile }

package body BIP_Prim_Func is
        
   type NTT is new TT with record
      J : Integer;
   end record;
        
   function Prim_Func return NTT is
   begin
      return Result : NTT := (I => 1, J => 2);
   end Prim_Func;
        
end BIP_Prim_Func;