2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / spec_expr_1.f90
blob61591c3113c12eab7dea9016820bf1d5e066debe
1 ! { dg-do compile }
2 ! PR 20323
3 ! We didn't verify that character length expressions are specification
4 ! expressions.
5 function testpresent(arg)
6 integer, intent(in), optional :: arg
7 character(len=arg) :: s ! { dg-error "OPTIONAL" }
8 logical :: testpresent
10 testpresent=.true.
12 end function testpresent