summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/operator_6.f90
blob: f7b4693f58f6eee00cbff17c78359e6c51470c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { dg-do compile }
!
! PR fortran/29876 ICE on bad operator in ONLY clause of USE statement
! Testcase contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
!
module foo
end module foo

program test
  use foo, only : operator(.none.)           ! { dg-error "not found in module" }
  end program test
! { dg-final { cleanup-modules "foo" } }