3 ! PR 43169: [OOP] gfortran rejects PURE procedure with SELECT TYPE construct
5 ! Original test case by Todd Hay <haymaker@mail.utexas.edu>
6 ! Modified by Janus Weil <janus@gcc.gnu.org>
13 pure subroutine sub1(x)
17 class(myType), intent(inout) :: x
23 g = 44. ! { dg-error "variable definition context" }
33 g = 47. ! { dg-error "variable definition context" }
39 integer, save :: i ! { dg-error "cannot be specified in a PURE procedure" }
40 integer :: j = 5 ! { dg-error "is not allowed in a PURE procedure" }