Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/pr65504.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! PR target/65504 ! { dg-do run } program pr65504 implicit none type :: T character (len=256) :: a character (len=256) :: b end type T type (T) :: c type (T) :: d c = foo ("test") d = foo ("test") if (trim(c%b) .ne. "foo") STOP 1 contains type (T) function foo (x) result (v) character(len=*), intent(in) :: x select case (x) case ("test") v%b = 'foo' case ("bazx") v%b = 'barx' case default print *, "unknown" stop end select end function foo end program pr65504