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
2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
alloc_comp_constraint_2.f90
blob
c37edb6bc48a929f4e07a7f1fc03837ff07bf55c
1
! { dg-do compile }
2
! Check that equivalence with allocatable components isn't allowed (PR 20541)
3
program
main
4
5
type
::
foo
6
sequence
7
integer
,
allocatable
::
x
(:)
8
end type
foo
9
10
type
(
foo
) ::
a
11
integer
::
b
12
13
equivalence
(
a
,
b
)
! { dg-error "cannot have ALLOCATABLE components" }
14
15
end program
main