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
re PR c++/84691 (internal compiler error: in poplevel_class, at cp/name-lookup.c...
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
slice9.adb
blob
2a90a9c631c384e5a84a70f6ffbc3c49fd54a198
1
-- { dg-do compile }
2
3
procedure
Slice9
is
4
5
function
Ident
(
I
:
Integer
)
return
Integer
is
6
begin
7
return
I
;
8
end
;
9
10
subtype
S
is
String
(
Ident
(
5
)..
Ident
(
9
));
11
12
Dest
:
S
;
13
14
Src
:
String
(
Ident
(
1
)..
Ident
(
5
)) :=
"ABCDE"
;
15
16
begin
17
Dest
(
Ident
(
5
)..
Ident
(
7
)) :=
Src
(
Ident
(
1
)..
Ident
(
3
));
18
end
;