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
* snames.ads-tmpl (Name_Ivdep): New pragma-related name.
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
spipaterr.adb
blob
b68dc2e10fac477c3c274f1505df647975975fb0
1
-- { dg-do run }
2
3
with
Text_IO
;
use
Text_IO
;
4
with
GNAT
.
SPITBOL
.
Patterns
;
use
GNAT
.
SPITBOL
.
Patterns
;
5
procedure
Spipaterr
is
6
X
:
String
:=
"ABCDE"
;
7
Y
:
Pattern
:=
Len
(
1
) &
X
(
2
..
2
);
8
begin
9
if
Match
(
"XB"
,
Y
)
then
10
null
;
11
else
12
raise
Program_Error
;
13
end if
;
14
end
;