aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/specs/storage.ads
blob: e544457930dbdd555c484842744e77729ea4b080 (plain)
1
2
3
4
5
6
7
8
9
10
-- { dg-do compile }
with System.Pool_Global;
package Storage is
   x1: System.Pool_Global.Unbounded_No_Reclaim_Pool;
   type T1 is access integer;
   for T1'Storage_Pool use (x1);  -- { dg-error "must be a variable" }
   type T2 is access Integer;
   for T2'Storage_Pool use x1;
end Storage;