view gcc/testsuite/gfortran.dg/common_26.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

! { dg-do compile }
module mymod
  type :: mytyp
    integer :: i
  end type mytyp
contains
  subroutine mysub
    implicit none
    type(mytyp) :: a
    integer :: commoni,commonj
    commoni = a%i
    commonj = a%j             ! { dg-error "is not a member of" }
  end subroutine mysub
end module mymod