Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/binding_label_tests_23.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do run } |
2 ! | |
3 ! PR fortran/48858 | |
4 ! | |
5 integer function foo(x) | |
6 integer :: x | |
131 | 7 STOP 1 |
111 | 8 foo = 99 |
9 end function foo | |
10 | |
11 integer function other() bind(C, name="bar") | |
12 other = 42 | |
13 end function other | |
14 | |
15 program test | |
16 interface | |
17 integer function foo() bind(C, name="bar") | |
18 end function foo | |
19 end interface | |
131 | 20 if (foo() /= 42) STOP 2 ! Ensure that the binding name is all what counts |
111 | 21 end program test |