diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/binding_label_tests_23.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/binding_label_tests_23.f90 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/binding_label_tests_23.f90 b/gcc/testsuite/gfortran.dg/binding_label_tests_23.f90 new file mode 100644 index 0000000000..ba9e61550f --- /dev/null +++ b/gcc/testsuite/gfortran.dg/binding_label_tests_23.f90 @@ -0,0 +1,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 |