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 230b99e4fcde88d05b96d356ecf795132c4dc5ef..7a01095bfdcaf90fb4077c6eacd92e32852f2b93 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