URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [nullify_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do run }! { dg-options "-O0 -fbounds-check" }! Tests patch for PR29371, in which the null pointer! assignment would cause a segfault with the bounds! check on.!! Contributed by Tobias Burnus <tobias.burnus@physik.fu-berlin.de>!program testimplicit nonetype projector_treal, pointer :: ket(:, :), bra(:, :)end type projector_ttype(projector_t),pointer, dimension(:) :: pinteger :: stat,iallocate(p(2),stat=stat)do i = 1, 2nullify(p(i)%bra)nullify(p(i)%ket)end dodo i = 1, 2if (associated (p(i)%bra)) call abort ()if (associated (p(i)%ket)) call abort ()end doend program
