aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr15754.f90
blob: 6d8e34f28db77c7edf19d89e480935219dbca52f (plain)
1
2
3
4
5
6
7
! we didn't give a warning if the RHS of an assignment was NULL
! { dg-do-compile }
INTEGER, POINTER :: P
I = NULL() ! { dg-warning "NULL appears" "Assignment non-pointer = NULL" }
P = NULL() ! { dg-warning "NULL appears" "Assignment pointer = NULL" }
P => NULL()
END