| 1 |
! { dg-do run } |
| 2 |
! { dg-options "-fcray-pointer" } |
| 3 |
! |
| 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)) STOP 1 |
| 11 |
if (c_sizeof(pointee) /= c_sizeof(x)*10) STOP 2 |
| 12 |
end |