PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / global_references_2.f90
blobbf2528006a07e193db61881313eb6b1b7bc372b4
1 ! { dg-do compile }
2 ! { dg-options "-std=legacy" }
4 ! This program tests the patch for PR25964. This is a
5 ! regression that would not allow a common block and a statement
6 ! to share the same name.
8 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
9 common /foo/ a, b, c
10 foo (x) = x + 1.0
11 print *, foo (0.0)
12 end