annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! PR 20323
kono
parents:
diff changeset
3 ! We didn't verify that character length expressions are specification
kono
parents:
diff changeset
4 ! expressions.
kono
parents:
diff changeset
5 function testpresent(arg)
kono
parents:
diff changeset
6 integer, intent(in), optional :: arg
kono
parents:
diff changeset
7 character(len=arg) :: s ! { dg-error "OPTIONAL" }
kono
parents:
diff changeset
8 logical :: testpresent
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 testpresent=.true.
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 end function testpresent