aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/shift2.adb
blob: b45e44018132025ce9e5de76e516011c4d868542 (plain)
1
2
3
4
5
6
7
8
-- { dg-do compile }

with Interfaces; use Interfaces;

function Shift2 (V : Unsigned_32) return Unsigned_32 is
begin
  return Shift_Left (V, (case V is when 0 => 1, when others => 0));
end;