Debian Codegraph @

gcc/testsuite/gnat.dg/shift2.adb

raw
1 -- { dg-do compile }
2
3 with Interfaces; use Interfaces;
4
5 function Shift2 (V : Unsigned_32) return Unsigned_32 is
6 begin
7 return Shift_Left (V, (case V is when 0 => 1, when others => 0));
8 end;