2 ! { dg-options "-O0 -fbounds-check" }
3 ! Tests patch for PR29371, in which the null pointer
4 ! assignment would cause a segfault with the bounds
7 ! Contributed by Tobias Burnus <tobias.burnus@physik.fu-berlin.de>
12 real, pointer :: ket(:, :), bra(:, :)
15 type(projector_t
),pointer, dimension(:) :: p
17 allocate(p(2),stat
=stat
)
23 if (associated (p(i
)%bra
)) call abort ()
24 if (associated (p(i
)%ket
)) call abort ()