mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Test handling of switches with wide case ranges.
llvm-svn: 35279
This commit is contained in:
parent
7a9c981d80
commit
bce4648a05
12
test/AdaFrontend/switch.adb
Normal file
12
test/AdaFrontend/switch.adb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
-- 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;
|
Loading…
Reference in New Issue
Block a user