Commit 2a88974c by Dominique d'Humieres

re PR fortran/52789 (gfortran sets -Wunused-parameter in the C sense as well as the Fortran sense)

2019-02-07  Dominique d'Humieres  <dominiq@gcc.gnu.org>

	PR fortran/52789
	* gfortran.dg/wunused-parameter_2.f90: New test.

From-SVN: r268656
parent accd3cd6
2019-02-07 Dominique d'Humieres <dominiq@gcc.gnu.org>
PR fortran/52789
* gfortran.dg/wunused-parameter_2.f90: New test.
2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
* gcc.dg/rtl/arm/ldrd-peepholes.c: Only run on arm
......
! { dg-do compile }
! { dg-options "-Wunused-parameter -Wunused-dummy-argument" }
!
! PR fortran/52789
!
! Contributed by Mat Cross
!
! Check for unused parameter and dummy argument
!
subroutine s(x) ! { dg-warning "Unused dummy argument" }
integer, parameter :: i = 0 ! { dg-warning "Unused parameter" }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment