152
|
1 ! { dg-do compile }
|
|
2 ! PR 94737 - global symbols are case-insensitive; an error should be
|
|
3 ! reported if they match (see F2018, 9.2, paragraph 2). Original
|
|
4 ! test case by Lee Busby.
|
|
5
|
|
6 module foo
|
|
7
|
|
8 interface
|
|
9 function func1(ii) result (k) bind(c, name="c_func")
|
|
10 integer :: ii
|
|
11 integer :: k
|
|
12 end function func1
|
|
13 subroutine sub1(ii,jj) bind(c, name="c_Func") ! { dg-error "Global binding name" }
|
|
14 integer :: ii,jj
|
|
15 end subroutine sub1
|
|
16 end interface
|
|
17
|
|
18 contains
|
|
19
|
|
20 function func2(ii) result (k)
|
|
21 integer :: ii
|
|
22 integer :: k
|
|
23 k = func1(ii) ! { dg-error "Global binding name" }
|
|
24 end function func2
|
|
25 end module foo
|