2010-11-11 Jakub Jelinek <jakub@redhat.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / module_commons_2.f90
blob3c3214c20ff3662b41022373b01d098dba3f5726
1 ! { dg-do compile }
2 ! Tests the fix for PR35474, in which the PRIVATE statement would
3 ! cause the error Internal Error at (1): free_pi_tree(): Unresolved fixup
4 ! This arose because the symbol for 'i' emanating from the COMMON was
5 ! not being fixed-up as the EQUIVALENCE was built.
7 ! Contributed by FX Coudert <fxcoudert@gcc.gnu.org>
9 module h5global
10 integer i
11 integer j
12 common /c/ i
13 equivalence (i, j)
14 private
15 end module h5global
17 program bug
18 use h5global
19 end
21 ! { dg-final { cleanup-modules "h5global" } }