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: Fix up pointer types to may_alias structures [PR114493]
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
allocate_alloc_opt_14.f90
blob
6de43a7597fe4830578658a13dee4ef8c34667af
1
! { dg-do compile }
2
program
p
3
integer
,
allocatable
::
arr
(:)
4
integer
::
stat
5
character
(
len
=
128
,
kind
=
4
) ::
errmsg
=
' '
6
allocate
(
arr
(
3
),
stat
=
stat
,
errmsg
=
errmsg
)
! { dg-error "shall be a scalar default CHARACTER" }
7
print
*,
allocated
(
arr
),
stat
,
trim
(
errmsg
)
8
end