nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_24.f03
blob085e6d1e1ce89c295fb044d64c1d1496e428a2e5
1 ! { dg-do compile }
3 ! PR 44869: [OOP] Missing TARGET check - and wrong code or accepts-invalid?
5 ! Contributed by Satish.BD <bdsatish@gmail.com>
7   type :: test_case
8   end type 
10   type :: test_suite
11     type(test_case) :: list
12   end type
14 contains
16   subroutine sub(self)
17     class(test_suite), intent(inout) :: self
18     type(test_case), pointer :: tst_case
19     tst_case => self%list       ! { dg-error "is neither TARGET nor POINTER" }
20   end subroutine
22 end