Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/class_allocate_21.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 run } ! ! Testcase for pr57117 implicit none type :: ti integer :: i end type class(ti), allocatable :: x(:,:), z(:) integer :: i allocate(x(3,3)) x%i = reshape([( i, i = 1, 9 )], [3, 3]) allocate(z(9), source=reshape(x, (/ 9 /))) if (any( z%i /= [( i, i = 1, 9 )])) STOP 1 deallocate (x, z) end