summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/cpp1.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/specs/cpp1.ads')
-rw-r--r--gcc/testsuite/gnat.dg/specs/cpp1.ads10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/specs/cpp1.ads b/gcc/testsuite/gnat.dg/specs/cpp1.ads
new file mode 100644
index 000000000..1f759b7a9
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/specs/cpp1.ads
@@ -0,0 +1,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;