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++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
discr36.adb
blob
64d95558e88524ffeac62721d6b63003e6325c8e
1
-- { dg-do compile }
2
3
with
Discr36_Pkg
;
4
5
package body
Discr36
is
6
7
function
N
return
Natural
is begin return
0
;
end
;
8
9
type
Arr
is array
(
1
..
N
)
of
R
;
10
11
function
My_Func
is new
Discr36_Pkg
.
Func
(
Arr
);
12
13
procedure
Proc
is
14
A
:
constant
Arr
:=
My_Func
;
15
begin
16
null
;
17
end
;
18
19
end
Discr36
;