view gcc/testsuite/gfortran.dg/spec_expr_1.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! PR 20323
! We didn't verify that character length expressions are specification
! expressions.
function testpresent(arg) 
   integer, intent(in), optional :: arg 
   character(len=arg) :: s ! { dg-error "OPTIONAL" }
   logical :: testpresent 
 
   testpresent=.true. 
 
end function testpresent