Fix global_vars_f90_init test failure
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 21 Nov 2019 15:06:56 +0000 (15:06 +0000)
committerWilco Dijkstra <wilco@gcc.gnu.org>
Thu, 21 Nov 2019 15:06:56 +0000 (15:06 +0000)
Add a missing extern to ensure the test passes with -fno-common change.
Committed as obvious.

    testsuite/
* gfortran.dg/global_vars_f90_init_driver.c: Add missing extern.

From-SVN: r278557

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/global_vars_f90_init_driver.c

index 8197698dd4ffadbbd1b2556ee83363c45be15e24..af77dfa7c2bd549e9d7f1853d9041186ae4bae8e 100644 (file)
@@ -1,3 +1,7 @@
+2019-11-21  Wilco Dijkstra  <wdijkstr@arm.com>
+
+       * gfortran.dg/global_vars_f90_init_driver.c: Add missing extern.
+
 2019-11-21  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/92596
index 7869c83f71254d3269404331aac56c38abbc7521..27ba7e656d0c354ed8dc504c0cd42855e309cdaa 100644 (file)
@@ -1,5 +1,5 @@
 /* initialized by fortran */
-int i;
+extern int i;
 void test_globals(void);
 
 extern void abort(void);