Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/class_52.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 } ! { dg-options "-std=f2003" } ! ! PR fortran/52270 ! ! From IR F08/0073 by Malcolm Cohen ! Program m013 Type t Real c End Type Type(t),Target :: x Call sub(x) ! { dg-error "Fortran 2008: Non-pointer actual argument" } Print *,x%c if (x%c /= 3) STOP 1 Contains Subroutine sub(p) Class(t),Pointer,Intent(In) :: p p%c = 3 End Subroutine End Program