summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/binding_label_tests_12.f03
blob: 0a0006681154943fc5989104295f738e73b9ce45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
! { dg-do run }
! This verifies that the compiler will correctly accpet the name="", write out
! an empty string for the binding label to the module file, and then read it
! back in.  Also, during gfc_verify_binding_labels, the name="" will prevent
! any verification (since there is no label to verify).
module one
contains
  subroutine foo() bind(c)
  end subroutine foo
end module one

module two
contains
  ! This procedure is only used accessed in C
  ! as procedural pointer
  subroutine foo() bind(c, name="")
  end subroutine foo
end module two

use one, only: foo_one => foo
use two, only: foo_two => foo
end

! { dg-final { cleanup-modules "one two" } }