summaryrefslogtreecommitdiff
path: root/elf/tst-tls10.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls10.c')
-rw-r--r--elf/tst-tls10.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/elf/tst-tls10.c b/elf/tst-tls10.c
index 347243f66b..eb1ecb9216 100644
--- a/elf/tst-tls10.c
+++ b/elf/tst-tls10.c
@@ -8,8 +8,8 @@ __thread struct A local = { 1, 2, 3 };
if (p->a != S || p->b != S + 1 || p->c != S + 2) \
abort ()
-int
-main (void)
+static int
+do_test (void)
{
struct A *p;
if (local.a != 1 || local.b != 2 || local.c != 3)
@@ -35,3 +35,6 @@ main (void)
exit (0);
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"