☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gnat.dg
/
shift2.adb
☽
☼
gcc/testsuite/gnat.dg/shift2.adb
code
plain
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;