gdb/testsuite/gdb.threads: Ensure TLS tests link against pthreads.
[platform/upstream/binutils.git] / gdb / testsuite / gdb.threads / tls-nodebug.c
index 73d96f0..d3b31b7 100644 (file)
@@ -6,5 +6,7 @@ __thread int thread_local = 42;
 
 int main(void)
 {
+  /* Ensure we link against pthreads even with --as-needed.  */
+  pthread_testcancel();
   return 0;
 }