testsuite: expect additional warning in analyzer/pr93993.f90
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 30 Jun 2020 17:42:53 +0000 (13:42 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Tue, 30 Jun 2020 17:44:26 +0000 (13:44 -0400)
The recent changes to warnings elicit an additional warning in
analyzer/pr93993.f90.  This patch updates the testcase to expect the warning.

gcc/testsuite/ChangeLog

2020-06-30  David Edelsohn  <dje.gcc@gmail.com>

* gfortran.dg/analyzer/pr93993.f90: Expect leak tm warning.

gcc/testsuite/gfortran.dg/analyzer/pr93993.f90

index 230b99e..7a01095 100644 (file)
@@ -18,7 +18,7 @@ contains
 
     allocate (tm) ! { dg-bogus "dereference of possibly-NULL" }
     ce => tm
-  end function hv
+  end function hv ! { dg-warning "leak of 'tm'" }
 
 end module gg