From 178073690aec73fdb5f4452b49f108407edde700 Mon Sep 17 00:00:00 2001 From: Bernhard Heckel Date: Wed, 2 Mar 2016 16:36:37 +0100 Subject: [PATCH] testsuite: Nullify pointers before first usage. Nullify pointers to avoid an undefined association status. 2016-03-02 Bernhard Heckel gdb/testsuite/Changelog: * gdb.mi/vla.f90: Nullify pointer after declaration. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.mi/vla.f90 | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index aeb28376aac..e14b6540a4f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-03-02 Bernhard Heckel + + * gdb.mi/vla.f90: Nullify pointer after declaration. + 2016-03-01 Pedro Alves * gdb.trace/ftrace-lock.c: Include . diff --git a/gdb/testsuite/gdb.mi/vla.f90 b/gdb/testsuite/gdb.mi/vla.f90 index 10c3dcce94d..c3e48dcd0b6 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 -- 2.30.2