modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / automatic_save.f90
blob2455d208ecc795856f7569237e06807e68f80041
1 ! { dg-do compile }
2 ! { dg-options "-fdec-static" }
3 ! An AUTOMATIC statement cannot be used with SAVE
4 FUNCTION X()
5 REAL, SAVE, AUTOMATIC :: Y ! { dg-error "AUTOMATIC attribute conflicts with SAVE attribute" }
6 y = 1
7 END FUNCTION X
8 END