view gcc/testsuite/gfortran.dg/associated_3.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

! { dg-do compile }
! Test for fix of PR27655
!
!Contributed by Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org> 
  integer, pointer :: i
  print *, associated(NULL(),i) ! { dg-error "not permitted as actual argument" }
  print *, associated(i,NULL()) ! { dg-error "not permitted as actual argument" }
end