nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / class_25.f03
blob4c3563ccb6d97cfff0e8a16e80cc5337453b4aa7
1 ! { dg-do run }
3 ! PR [OOP] Compile-time errors on typed allocation and pointer function result assignment
5 ! Contributed by Damian Rouson <damian@rouson.net>
7 module m
9   implicit none
11   type foo 
12   end type
14   type ,extends(foo) :: bar
15   end type
17 contains
19   function new_bar()
20     class(foo) ,pointer :: new_bar
21     allocate(bar :: new_bar) 
22   end function
24 end module
26 end