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
PR ipa/83051
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pdt_27.f03
blob
89eb63d53e3635c33f8f0a3edce7929420f2dc8e
1
! { dg-do run }
2
!
3
! Test the fix for PR83611, in which the assignment caused a
4
! double free error and the initialization of 'foo' was not done.
5
!
6
module pdt_m
7
implicit none
8
type :: vec(k)
9
integer, len :: k=3
10
integer :: foo(k)=[1,2,3]
11
end type vec
12
end module pdt_m
13
14
program test_pdt
15
use pdt_m
16
implicit none
17
type(vec) :: u,v
18
if (any (u%foo .ne. [1,2,3])) call abort
19
u%foo = [7,8,9]
20
v = u
21
if (any (v%foo .ne. [7,8,9])) call abort
22
end program test_pdt