coarray_41.f90: Add "-latomic" option if libatomic_available.
[official-gcc.git] / gcc / testsuite / gfortran.dg / whole_file_21.f90
blobb1c1dacb2dd212c0ce91b390e44cd3961f38445b
1 ! { dg-do link }
2 ! PR fortran/40011
4 ! Contributed by Joost VandeVondele
7 ! Before no "one" function was generated with -fwhole-file.
10 SUBROUTINE one ( )
11 END SUBROUTINE one
13 SUBROUTINE two ( )
14 END SUBROUTINE two
16 MODULE mod
17 CONTAINS
18 SUBROUTINE three ( )
19 CALL two ( )
20 END SUBROUTINE three
21 SUBROUTINE four ( )
22 CALL one ( )
23 END SUBROUTINE four
24 END MODULE mod
25 END