mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 22:15:18 +00:00
ec44ba07b5
RUN line in Support. Give up on sending output to /dev/null - this cannot always be arranged. llvm-svn: 40436
13 lines
237 B
Ada
13 lines
237 B
Ada
-- RUN: %llvmgcc -c %s
|
|
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;
|