2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / stfunc_3.f90
blob90980a924485cd08eec237a5df393359b8df4291
1 ! { dg-do compile }
2 ! { dg-options "-std=legacy" }
4 ! Tests the fix for PR20867 in which implicit typing was not done within
5 ! statement functions and so was not confirmed or not by subsequent
6 ! type delarations.
8 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
10 REAL :: st1
11 st1(I)=I**2
12 REAL :: I ! { dg-error " already has basic type of INTEGER" }
13 END