mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
than -c. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120157 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
237 B
Ada
13 lines
237 B
Ada
-- RUN: %llvmgcc -S %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;
|