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
Fix compilation failure with C++98 compilers
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
shape_5.f90
blob
cb1c28e81d3301074d92db5126ba1af27bdeecbc
1
! { dg-do run }
2
! PR 40067 - this used to segfault on an unallocated return array.
3
integer
,
dimension
(
10
) ::
int1d
4
integer
,
dimension
(:),
pointer
::
int1d_retrieved
5
6
allocate
(
int1d_retrieved
(
10
))
7
if
(
any
(
shape
(
int1d_retrieved
) /=
shape
(
INT1D
)))
STOP
1
8
end