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
/
transfer_class_1.f90
blob
00b3a2405f3e5f88ed83beeea35562b7ca6cfc57
1
! { dg-do compile }
2
! { dg-options "-Wsurprising" }
3
!
4
! PR 54917: [4.7/4.8 Regression] [OOP] TRANSFER on polymorphic variable causes ICE
5
!
6
! Contributed by Sean Santos <quantheory@gmail.com>
7
8
subroutine
test_routine1
(
arg
)
9
implicit none
10
type
test_type
11
integer
::
test_comp
12
end type
13
class
(
test_type
) ::
arg
14
integer
::
i
15
i
=
transfer
(
arg
,
1
)
16
end subroutine