gcc/fortran/
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_sizeof_5.f90
blob127a24ab6a4ffd6ba5535ddfaac80b73dff08430
1 ! { dg-do run }
2 ! { dg-options "-fcray-pointer" }
4 use iso_c_binding
5 real target(10)
6 real pointee(10)
7 pointer (ipt, pointee)
8 integer(c_intptr_t) :: int_cptr
9 real :: x
10 if (c_sizeof(ipt) /= c_sizeof(int_cptr)) call abort()
11 if (c_sizeof(pointee) /= c_sizeof(x)*10) call abort()
12 end