RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / public_private_module_6.f90
blobb9145af113e82f1cf34c77586ccda58953e0a990
1 ! { dg-do compile }
2 ! { dg-options "-O1" }
3 ! { dg-require-visibility "" }
5 ! PR fortran/54221
7 ! Check that the unused PRIVATE "aaaa" variable is optimized away
10 module m
11 private
12 integer, save :: aaaa
13 end module m
15 ! The xfail below has appeared with the introduction of submodules. 'aaaa'
16 ! now is TREE_PUBLIC but has DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN set.
18 ! { dg-final { scan-assembler-not "aaaa" { xfail *-*-* } } }