Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 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 | |
131 | 10 if (c_sizeof(ipt) /= c_sizeof(int_cptr)) STOP 1 |
11 if (c_sizeof(pointee) /= c_sizeof(x)*10) STOP 2 | |
111 | 12 end |