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
[C++ PATCH]: instantiation via vtable marking
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
array12.adb
blob
3748d5ec206b82583e8bea08962d5f6ce5045289
1
-- { dg-do run }
2
3
procedure
Array12
is
4
5
function
N
return
Integer
is
6
begin
7
return
0
;
8
end
;
9
10
subtype
Element
is
String
(
1
..
N
);
11
type
Ptr
is access all
Element
;
12
type
Vector
is array
(
Positive
range
<>)
of aliased
Element
;
13
14
V
:
Vector
(
1
.
.2
);
15
16
begin
17
if
Ptr
'(V(1)'Access) = V(2)'Access then
18
raise Program_Error;
19
end if;
20
end;