runtime: allow preemption in fast syscall return
[official-gcc.git] / gcc / testsuite / gnat.dg / opt64_pkg.adb
blob5235e73b88af366c38f25e1e5ab85b7ef48b9f40
1 package body Opt64_PKG is
3 procedure Encode (X : Integer) is
4 result : Hash;
5 begin
6 case X is
7 when 1 => result := "1";
8 when 2 => result := "2";
9 when 3 => result := "3";
10 when others => Result := "?";
11 end case;
12 Last_Hash := Result;
13 end;
14 end;