view gcc/testsuite/gnat.dg/bip_overlay.ads @ 143:76e1cf5455ef

add cbc_gc test
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:24:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

package BIP_Overlay
 with SPARK_Mode
is
   type X (<>) is limited private;

   pragma Warnings (gnatprove, Off,
     "volatile function ""Init"" has no volatile effects",
      reason => "Init is a pure function but returns a volatile type.");
   function Init return X
   with
      Volatile_Function;

private
   type A is limited record
      E : Integer;
   end record
      with
      Volatile;
      -- and Async_Readers when implemented;

   type X is limited new A;
end BIP_Overlay;