Debian Codegraph @

gcc/testsuite/gfortran.dg/bind_c_char_11.f90

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-Wuninitialized" }
3 !
4 ! PR fortran/115390 - fixes for CHARACTER(len=*) dummies with bind(C)
5
6 module test
7 implicit none
8 contains
9 subroutine bar(s,t) bind(c)
10 character(*), intent(in) :: s,t
11 optional :: t
12 call foo(s,t)
13 end
14 subroutine bar1(s,t) bind(c)
15 character(*), intent(in) :: s(:),t(:)
16 optional :: t
17 call foo1(s,t)
18 end
19 subroutine bar4(s,t) bind(c)
20 character(len=*,kind=4), intent(in) :: s,t
21 optional :: t
22 call foo4(s,t)
23 end
24 subroutine bar5(s,t) bind(c)
25 character(len=*,kind=4), intent(in) :: s(:),t(:)
26 optional :: t
27 call foo5(s,t)
28 end
29 subroutine foo(s,t)
30 character(*), intent(in) :: s,t
31 optional :: t
32 end
33 subroutine foo1(s,t)
34 character(*), intent(in) :: s(:),t(:)
35 optional :: t
36 end
37 subroutine foo4(s,t)
38 character(len=*,kind=4), intent(in) :: s,t
39 optional :: t
40 end
41 subroutine foo5(s,t)
42 character(len=*,kind=4), intent(in) :: s(:),t(:)
43 optional :: t
44 end
45 end