2018-09-30 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr57987.f90
blob12b60c5d7b5d07215657b355fd1f20ff08b5b034
1 ! { dg-do compile }
2 ! { dg-options "-O3 -fno-ipa-cp -fdump-ipa-inline" }
4 program test
5 call test2 ()
6 contains
7 subroutine test2 ()
8 type t
9 integer, allocatable :: x
10 end type t
12 type t2
13 class(t), allocatable :: a
14 end type t2
16 type(t2) :: one, two
18 allocate (two%a)
19 one = two
20 end subroutine test2
21 end program test
23 ! { dg-final { scan-ipa-dump-not "redefined extern inline functions are not considered for inlining" "inline" } }