summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/cpp1.ads
blob: 1f759b7a9a18b19a25ce48a6b9a19aa51084764c (plain)
1
2
3
4
5
6
7
8
9
10
--  { dg-do compile }

package cpp1 is
    type Root_Interface is interface; 

    type Typ is new Root_Interface with record
       TOTO : Integer;
       pragma CPP_Vtable (TOTO);
    end record;
end cpp1;