1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/FrontendAda/switch.adb
Chris Lattner 3888505be5 move ada tests
llvm-svn: 35629
2007-04-03 21:46:22 +00:00

13 lines
250 B
Ada

-- RUN: %llvmgcc -c %s -o /dev/null
function Switch (N : Integer) return Integer is
begin
case N is
when Integer'First .. -1 =>
return -1;
when 0 =>
return 0;
when others =>
return 1;
end case;
end;