5 ! Test that C_SIZEOF returns the expected results
11 integer, pointer :: p(:)
13 if (c_sizeof(a
) /= 6*4) stop 1
14 if (c_sizeof(a(1)) /= 4) stop 2
15 if (c_sizeof(a(:)) /= 6*4) stop 3
16 if (c_sizeof(a(2::2)) /= 3*4) stop 4
19 if (c_sizeof(p
) /= 5*4) stop 5
20 if (c_sizeof(p(1)) /= 4) stop 6
21 if (c_sizeof(p(:)) /= 5*4) stop 7
22 if (c_sizeof(p(2::2)) /= 2*4) stop 8