Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git] / gcc / testsuite / gfortran.dg / binding_label_tests_34.f90
blobf4f18626ed88942406092e0ef94d227435bd6581
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.
6 module foo
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
18 contains
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