Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gfortran.dg / class_56.f90
blob26df798f410d90008c7f7a5f4d3c42323aae8e43
1 ! { dg-do compile }
2 ! Test fix for PR56575.
4 ! Contributed by A Kasahara <latlon90180+gcc_bugzilla@gmail.com>
6 module lib_container
7 implicit none
9 type:: Object
10 end type Object
12 type:: Container
13 class(Object):: v ! { dg-error "must be allocatable or pointer" }
14 end type Container
16 contains
18 subroutine proc(self)
19 class(Container), intent(inout):: self
20 end subroutine proc
21 end module lib_container