aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr78739.f90
blob: 4b36b76ab21aef784c0e4fd6591a42ffe7f0f05e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-options "-w" }
! PR fortran/78739
! Code contributed Gerhard Steinmetz
function f(n)
   f() = n    ! { dg-error "conflicts with function name" }
end

function g()
   g(x) = x   ! { dg-error "conflicts with function name" }
end

function a()  ! This should cause an error, but cannot be easily detected!
   a() = x
end