2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / transfer_class_1.f90
blob00b3a2405f3e5f88ed83beeea35562b7ca6cfc57
1 ! { dg-do compile }
2 ! { dg-options "-Wsurprising" }
4 ! PR 54917: [4.7/4.8 Regression] [OOP] TRANSFER on polymorphic variable causes ICE
6 ! Contributed by Sean Santos <quantheory@gmail.com>
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