OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-04-22 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gfortran.dg
/
alloc_comp_constraint_2.f90
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