-! { dg-do compile }
+! { dg-do run }
! Tests the fix for PR4164656 in which the call to a%a%scal failed to compile.
!
! Contributed by Salvatore Filippone <sfilippone@uniroma2.it>
integer :: err_act
character(len=20) :: name='csnmi'
logical, parameter :: debug=.false.
- print *, "s_scals"
+! print *, "s_scals"
+ info = 0
call a%a%scal(d,info)
return
end subroutine s_scals
b%a => c
a => b
call a%scal (1.0_spk_, info)
+ if (info .ne. 700) call abort
end
! { dg-final { cleanup-modules "const_mod base_mat_mod s_base_mat_mod s_mat_mod" } }