view gcc/testsuite/gfortran.dg/intent_out_8.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-Wall" }
!
! PR 53655: [F03] "default initializer" warnings
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>

type t
end type t

contains

  subroutine foo(x)             ! { dg-warning "defined but not used" }
    type(t), intent(out) :: x
  end subroutine

end