* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git] / gcc / testsuite / gnat.dg / frame_overflow.adb
blob1e7405fa5258c89751a79a3c959e9f7f22f65eb7
1 -- { dg-do compile }
3 package body Frame_Overflow is
5 function -- { dg-error "too large" }
6 Set_In (Bitmap : Bitmap_T; Bitpos : Bitpos_Range_T) return Bitmap_T
7 is
8 Result: Bitmap_T := Bitmap;
9 begin
10 Result.Bits (Bitpos) := True;
11 return Result;
12 end;
14 function -- { dg-error "too large" }
15 Negate (Bitmap : Bitmap_T) return Bitmap_T
17 Result: Bitmap_T;
18 begin
19 for E in Bitpos_Range_T loop
20 Result.Bits (E) := not Bitmap.Bits (E);
21 end loop;
22 return Result;
23 end;
25 end Frame_Overflow;