☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gfortran.dg
/
c_sizeof_6.f90
☽
☼
gcc/testsuite/gfortran.dg/c_sizeof_6.f90
code
plain
raw
1
! { dg-do compile }
2
!
3
program foo
4
5
use iso_c_binding, only: c_int, c_char, c_sizeof
6
7
integer(kind=c_int) :: i
8
9
character(kind=c_char,len=1),parameter :: str2(4) = ["a","b","c","d"]
10
11
i = c_sizeof(str2(1:3))
12
13
if (i /= 3) STOP 1
14
15
end program foo
16