comparison gcc/testsuite/gfortran.dg/binding_label_tests_23.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
2 ! 2 !
3 ! PR fortran/48858 3 ! PR fortran/48858
4 ! 4 !
5 integer function foo(x) 5 integer function foo(x)
6 integer :: x 6 integer :: x
7 call abort() 7 STOP 1
8 foo = 99 8 foo = 99
9 end function foo 9 end function foo
10 10
11 integer function other() bind(C, name="bar") 11 integer function other() bind(C, name="bar")
12 other = 42 12 other = 42
15 program test 15 program test
16 interface 16 interface
17 integer function foo() bind(C, name="bar") 17 integer function foo() bind(C, name="bar")
18 end function foo 18 end function foo
19 end interface 19 end interface
20 if (foo() /= 42) call abort() ! Ensure that the binding name is all what counts 20 if (foo() /= 42) STOP 2 ! Ensure that the binding name is all what counts
21 end program test 21 end program test