x86: Tune Skylake, Cannonlake and Icelake as Haswell
[official-gcc.git] / gcc / testsuite / gnat.dg / unc_memops.ads
blobe64b3a62c406c13506ef1b83e95c2ff51ff404ea
1 with System;
3 package Unc_Memops is
4 pragma Elaborate_Body;
6 type size_t is mod 2 ** Standard'Address_Size;
7 subtype addr_t is System.Address;
9 function Alloc (Size : size_t) return addr_t;
10 procedure Free (Ptr : addr_t);
11 function Realloc (Ptr : addr_t; Size : size_t) return addr_t;
13 procedure Expect_Symetry (Status : Boolean);
14 -- Whether we expect "free"s to match "alloc" return values in
15 -- reverse order, like alloc->X, alloc->Y should be followed by
16 -- free Y, free X.
18 private
20 -- Uncomment the exports below to really exercise the alternate versions.
22 -- This only works when using an installed version of the tools which
23 -- grabs the runtime library objects from an archive, hence doesn't force
24 -- the inclusion of s-memory.o.
26 -- pragma Export (C, Alloc, "__gnat_malloc");
27 -- pragma Export (C, Free, "__gnat_free");
28 -- pragma Export (C, Realloc, "__gnat_realloc");
30 end;