aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/binding_label_tests_23.f90
blob: ba9e61550f4d589d1a02f544c6cb4c0f18189fb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
! { dg-do run }
!
! PR fortran/48858
!
integer function foo(x)
  integer :: x
  call abort()
  foo = 99
end function foo

integer function other() bind(C, name="bar")
  other = 42
end function other

program test
  interface
    integer function foo() bind(C, name="bar")
    end function foo
  end interface
  if (foo() /= 42) call abort()  ! Ensure that the binding name is all what counts
end program test