mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
testsuite: Nullify pointers before first usage.
Nullify pointers to avoid an undefined association status. 2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com> gdb/testsuite/Changelog: * gdb.mi/vla.f90: Nullify pointer after declaration.
This commit is contained in:
parent
650beae39d
commit
178073690a
@ -1,3 +1,7 @@
|
||||
2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
|
||||
|
||||
* gdb.mi/vla.f90: Nullify pointer after declaration.
|
||||
|
||||
2016-03-01 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.trace/ftrace-lock.c: Include <unistd.h>.
|
||||
|
@ -18,6 +18,7 @@ program vla
|
||||
real, target, allocatable :: vla2(:, :)
|
||||
real, pointer :: pvla2 (:, :)
|
||||
logical :: l
|
||||
nullify (pvla2)
|
||||
|
||||
allocate (vla1 (5)) ! vla1-not-allocated
|
||||
l = allocated(vla1) ! vla1-allocated
|
||||
|
Loading…
Reference in New Issue
Block a user