| 1 |
! { dg-do compile } |
| 2 |
! PR fortran/70853 |
| 3 |
! Contributed by Gerhard Steinmetz |
| 4 |
program p |
| 5 |
real, pointer :: z(:) |
| 6 |
z(1:2) => null() ! { dg-error "pointer target shall not be NULL" } |
| 7 |
z(2:1) => null() ! { dg-error "pointer target shall not be NULL" } |
| 8 |
end |