RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / case_character.adb
blob59c9b66987d5ce099f1341064045870daf1b2d7c
1 -- { dg-do run }
3 procedure Case_Character is
5 function Test (C : Character) return Integer is
6 begin
7 case C is
8 when ASCII.HT | ' ' .. Character'Last => return 1;
9 when others => return 0;
10 end case;
11 end;
13 begin
15 if Test ('A') /= 1 then
16 raise Program_Error;
17 end if;
19 end;