PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / bip_overlay.ads
blob9a564ff08656cac00f91c795f84fe7a14d99f84b
1 package BIP_Overlay
2 with SPARK_Mode
3 is
4 type X (<>) is limited private;
6 pragma Warnings (gnatprove, Off,
7 "volatile function ""Init"" has no volatile effects",
8 reason => "Init is a pure function but returns a volatile type.");
9 function Init return X
10 with
11 Volatile_Function;
13 private
14 type A is limited record
15 E : Integer;
16 end record
17 with
18 Volatile;
19 -- and Async_Readers when implemented;
21 type X is limited new A;
22 end BIP_Overlay;