Plugins: Add label-text.h to CPPLIB_H so it will be installed [PR115288]
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr98016.f90
blob71df67e6190ed58b8d794b58afa598b504749e49
1 ! { dg-do compile }
3 ! Fix for PR98016 - Used to fail with Error: Variable ā€˜nā€™ cannot appear in the
4 ! expression at (1) for line 16. Workaround was to declare y to be real.
6 ! Posted by Juergen Reuter <juergen.reuter@desy.de>
8 program is_it_valid
9 dimension y(3)
10 n=3
11 y=func(1.0)
12 print *, y
13 stop
14 contains
15 function func(x) result (y)
16 dimension y(n)
17 y=x
18 end function
19 end