summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/warn_unused_dummy_argument_2.f90
blob: 6a2233ba084c06163b3179a875884192ef7afc54 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! { dg-options "-Wall -Wno-unused-dummy-argument" }
!
! PR fortran/38407
!

SUBROUTINE s(dummy)
  INTEGER, INTENT(in) :: dummy
  INTEGER :: variable              ! { dg-warning "Unused variable" }
END SUBROUTINE