repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Preserving locations for variable-uses and constants (PR c++/43486)
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
case_character.adb
blob
59c9b66987d5ce099f1341064045870daf1b2d7c
1
-- { dg-do run }
2
3
procedure
Case_Character
is
4
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
;
12
13
begin
14
15
if
Test
(
'A'
) /=
1
then
16
raise
Program_Error
;
17
end if
;
18
19
end
;