elf: Fix tst-pldd for non-default --prefix and/or --bindir (BZ#24544)
[platform/upstream/glibc.git] / elf / tst-tls10.c
index dbcc697..d9611aa 100644 (file)
@@ -1,19 +1,16 @@
 #include "tst-tls10.h"
 
-#ifdef USE_TLS__THREAD
 __thread int dummy __attribute__((visibility ("hidden"))) = 12;
 __thread struct A local = { 1, 2, 3 };
-#endif
 
 #define CHECK(N, S)                                    \
   p = f##N##a ();                                      \
   if (p->a != S || p->b != S + 1 || p->c != S + 2)     \
     abort ()
 
-int
-main (void)
+static int
+do_test (void)
 {
-#ifdef USE_TLS__THREAD
   struct A *p;
   if (local.a != 1 || local.b != 2 || local.c != 3)
     abort ();
@@ -35,6 +32,8 @@ main (void)
     abort ();
   CHECK (9, 28);
   CHECK (10, 31);
-#endif
+
   exit (0);
 }
+
+#include <support/test-driver.c>