The linker on newer versions of Darwin complains about duplicate libaries,
The asan library is already provided by the relevant specs and pthreads are
included in libSystem.
gcc/testsuite/ChangeLog:
* g++.dg/asan/deep-thread-stack-1.C: Omit duplicate libraries
for Darwin.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
// { dg-do run { target pthread } }
-// { dg-options "-lasan -lpthread" }
+// { dg-options "-lasan -lpthread" { target { ! *-*-darwin* } } }
// { dg-shouldfail "asan" }
#include <pthread.h>