summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/spec_expr_1.f90
blob: 61591c3113c12eab7dea9016820bf1d5e066debe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! { 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