Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/der_io_1.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 |
line wrap: on
line source
! { dg-do compile } ! PR 16404 Nr. 8 ! IO of derived types containing pointers is not allowed program der_io_1 type t integer, pointer :: p end type integer, target :: i type (t) v character(4) :: s v%p => i i = 42 write (unit=s, fmt='(I2)') v ! { dg-error "POINTER components" } if (s .ne. '42') STOP 1 end program