aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-tls12.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls12.c')
-rw-r--r--elf/tst-tls12.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/elf/tst-tls12.c b/elf/tst-tls12.c
new file mode 100644
index 0000000000..c73038b84f
--- /dev/null
+++ b/elf/tst-tls12.c
@@ -0,0 +1,17 @@
+#include "tst-tls10.h"
+
+#define CHECK(N, S) \
+ p = &a##N; \
+ if (p->a != S || p->b != S + 1 || p->c != S + 2) \
+ abort ()
+
+int main()
+{
+#ifdef USE_TLS__THREAD
+ struct A *p;
+ check1 ();
+ CHECK (1, 4);
+ CHECK (2, 7);
+#endif
+ exit (0);
+}