2008-07-06 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / scalar_return_1.f90
blobd7583bc10b446412d8ac55ab3bce122775ea0112
1 ! { dg-do compile }
2 ! tests the fix for pr25082 in which the return of an array by a
3 ! subroutine went undremarked.
5 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
7 SUBROUTINE S1(*)
8 INTEGER :: a(2)
9 RETURN a ! { dg-error " requires a SCALAR" }
10 END SUBROUTINE S1