annotate gcc/testsuite/gfortran.dg/c_sizeof_5.f90 @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! { dg-options "-fcray-pointer" }
kono
parents:
diff changeset
3 !
kono
parents:
diff changeset
4 use iso_c_binding
kono
parents:
diff changeset
5 real target(10)
kono
parents:
diff changeset
6 real pointee(10)
kono
parents:
diff changeset
7 pointer (ipt, pointee)
kono
parents:
diff changeset
8 integer(c_intptr_t) :: int_cptr
kono
parents:
diff changeset
9 real :: x
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
10 if (c_sizeof(ipt) /= c_sizeof(int_cptr)) STOP 1
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
11 if (c_sizeof(pointee) /= c_sizeof(x)*10) STOP 2
111
kono
parents:
diff changeset
12 end