Test handling of switches with wide case ranges.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2007-03-23 07:17:52 +00:00
parent b8f1c1657f
commit b819a2b5fe

View 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;