coarray_data_1.f90: Link against libatomic if target libatomic_available.

* gfortran.dg/coarray_data_1.f90: Link against libatomic if target
	libatomic_available.

From-SVN: r269534
This commit is contained in:
John David Anglin 2019-03-09 19:39:38 +00:00 committed by John David Anglin
parent 9fa5d5de36
commit 4ecbb52b6e
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-03-09 John David Anglin <dave.anglin@bell.net>
* gfortran.dg/coarray_data_1.f90: Link against libatomic if target
libatomic_available.
2019-03-09 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/89041

View File

@ -1,5 +1,6 @@
! { dg-do run }
! { dg-options "-fcoarray=lib -lcaf_single " }
! { dg-additional-options "-latomic" { target libatomic_available } }
! PR 71066 - this used to ICE
program p
real :: a(2,2)[*]