2 ! { dg-options "-fdump-tree-original" }
8 use iso_c_binding
, only
: c_sizeof
, c_int
11 integer(c_int
), bind(C
) :: MPI_Status_C_obj
12 integer,parameter :: MPI_STATUS_SIZE
= c_sizeof(MPI_Status_C_obj
)
16 use iso_c_binding
, only
: c_sizeof
, c_int
19 integer(c_int
), bind(C
) :: MPI_Status_C_obj2
20 integer,parameter :: MPI_STATUS_SIZE2
&
21 = c_sizeof(MPI_Status_C_obj2
)*8/bit_size(0)
27 integer :: m1test
, m2test
28 m1test
= MPI_STATUS_SIZE
29 m2test
= MPI_STATUS_SIZE2
33 character(len
=20) :: str
37 iii
= sizeof (x
) ! 5*20 (whole size in bytes)
38 jjj
= storage_size (x
) ! 8*20 (element size in bits)
41 ! { dg-final { scan-tree-dump-times "m1test = 4;" 1 "original" } }
42 ! { dg-final { scan-tree-dump-times "m2test = 1;" 1 "original" } }
43 ! { dg-final { scan-tree-dump-times "iii = 100;" 1 "original" } }
44 ! { dg-final { scan-tree-dump-times "jjj = 160;" 1 "original" } }