aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorBernhard Heckel <bernhard.heckel@intel.com>2016-03-02 16:36:37 +0100
committerBernhard Heckel <bernhard.heckel@intel.com>2016-03-02 16:36:37 +0100
commit178073690aec73fdb5f4452b49f108407edde700 (patch)
tree1cbffd734d453ffdae16599298354509b32c898f /gdb/testsuite
parent650beae39d31e5ce2680649e2fb697e0e4a9e3eb (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.mi/vla.f901
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