1! { dg-do compile }
2! PR20856 - A function result may not have SAVE attribute.
3! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
4FUNCTION X() RESULT(Y)
5REAL, SAVE :: Y ! { dg-error "RESULT attribute conflicts with SAVE" }
6y = 1
7END FUNCTION X
8END
9