diff options
author | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-03-02 16:36:37 +0100 |
---|---|---|
committer | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-03-02 16:36:37 +0100 |
commit | 178073690aec73fdb5f4452b49f108407edde700 (patch) | |
tree | 1cbffd734d453ffdae16599298354509b32c898f | |
parent | 650beae39d31e5ce2680649e2fb697e0e4a9e3eb (diff) | |
download | gdb-178073690aec73fdb5f4452b49f108407edde700.zip gdb-178073690aec73fdb5f4452b49f108407edde700.tar.gz gdb-178073690aec73fdb5f4452b49f108407edde700.tar.bz2 |
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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/vla.f90 | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index aeb2837..e14b654 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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>. diff --git a/gdb/testsuite/gdb.mi/vla.f90 b/gdb/testsuite/gdb.mi/vla.f90 index 10c3dcc..c3e48dc 100644 --- a/gdb/testsuite/gdb.mi/vla.f90 +++ b/gdb/testsuite/gdb.mi/vla.f90 @@ -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 |