re PR fortran/39800 (Rejects PRIVATE TYPE as compont of local type declaration)
[gcc.git] / gcc / testsuite / gfortran.dg / private_type_2.f90
index 690be5d3a85c5ec7c5c0f4b0b487e32832389ddd..cda00cabbc6e259bd5d04568ffe9f91905c8bfd9 100644 (file)
@@ -1,8 +1,11 @@
 ! { dg-do compile }
+! { dg-options "-std=f95" }
 ! PR16404 test 6 - If a component of a derived type is of a type declared to
 ! be private, either the derived type definition must contain the PRIVATE
 ! statement, or the derived type must be private.
 ! Modified on 20051105 to test PR24534.
+! Modified on 20090419 to use -std=f95, since F2003 allows public types
+! with private components.
 !
 ! Contributed by Joost VandeVondele <jv244@cam.ac.uk>
 MODULE TEST