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 pr/45972
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
allocate_alloc_opt_8.f90
blob
39aa3638b469348493d1221317d0a16fd9f3d1ec
1
! { dg-do compile }
2
! { dg-options "-std=f2003" }
3
!
4
! PR 43388: [F2008][OOP] ALLOCATE with MOLD=
5
!
6
! Contributed by Janus Weil <janus@gcc.gnu.org>
7
8
type
::
t
9
end type
10
11
class
(
t
),
allocatable
::
x
12
type
(
t
) ::
z
13
14
allocate
(
x
,
MOLD
=
z
)
! { dg-error "MOLD tag at" }
15
16
end