coarray_43.f90: Add "-latomic" option if libatomic_available.
authorJohn David Anglin <danglin@gcc.gnu.org>
Sat, 4 Feb 2017 01:37:12 +0000 (01:37 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 4 Feb 2017 01:37:12 +0000 (01:37 +0000)
* gfortran.dg/coarray_43.f90: Add "-latomic" option if
libatomic_available.

From-SVN: r245182

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_43.f90

index 06d80a3bbcb5b429114cf9611b74d5d01c648ff6..f8cd36a033849332268847a6c14bff933366c03f 100644 (file)
@@ -1,5 +1,8 @@
 2017-02-03  John David Anglin  <danglin@gcc.gnu.org>
 
+       * gfortran.dg/coarray_43.f90: Add "-latomic" option if
+       libatomic_available.
+
        * gcc.dg/pr77587.c: Require alias support.
        * gcc.dg/pr77587a.c: Likewise.
 
index d5ee4e1a66839f2cf50743b6d5c8056037b82344..3078339f6a960aad693fc070f74fce0a978bd9c1 100644 (file)
@@ -1,5 +1,6 @@
 ! { dg-do link }
 ! { dg-options "-fcoarray=lib -lcaf_single" }
+! { dg-additional-options "-latomic" { target libatomic_available } }
 
 program coarray_43
   implicit none