Fix internal error on function call returning extension of limited interface
[official-gcc.git] / gcc / testsuite / gnat.dg / shift1.adb
blob85a0fecdae4cb96b94d1191d2a9e19037bdedef8
1 -- { dg-do compile }
2 -- { dg-options "-gnatws" }
4 procedure Shift1 is
6 type T_Integer_8 is range -2 ** 7 .. 2 ** 7 - 1
7 with Size => 8;
9 pragma Provide_Shift_Operators (T_Integer_8);
11 X : T_Integer_8;
13 begin
14 X := Shift_Right (X, 1);
15 end;