2 ! Support F2008's c_sizeof()
5 character(4),parameter :: str(1) = "abcd"
7 ! Using F2008's C_SIZEOF
9 if (i
/= 4) call abort()
12 if (i
/= 40) call abort()
15 if (i
/= 4) call abort()
18 if (i
/= 4) call abort()
20 i
= c_sizeof(str(1)(1:3))
22 if (i
/= 3) call abort()
26 if (i
/= 4) call abort()
29 if (i
/= 40) call abort()
32 if (i
/= 4) call abort()
35 if (i
/= 4) call abort()
37 i
= sizeof(str(1)(1:3))
38 if (i
/= 3) call abort()