]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Avoid uninit var in pr60510.f [PR111427]
authorKewen Lin <linkw@linux.ibm.com>
Thu, 12 Oct 2023 05:04:58 +0000 (00:04 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 12 Oct 2023 05:04:58 +0000 (00:04 -0500)
The uninitialized variable a in pr60510.f can cause
some random failures as exposed in PR111427.  This
patch is to make it initialized accordingly.

PR testsuite/111427

gcc/testsuite/ChangeLog:

* gfortran.dg/vect/pr60510.f (test): Init variable a.

gcc/testsuite/gfortran.dg/vect/pr60510.f

index ecd50dd5586eb31010c0b4204ee654b53474201f..6cae82acecef968838f5b03aab003f25106cfafc 100644 (file)
@@ -17,6 +17,7 @@
 
       program test
       real*8 x(1024),y(1024),a
+      a = 0.0
       do i=1,1024
         x(i) = i
         y(i) = i+1