aboutsummaryrefslogtreecommitdiff
path: root/REORG.TODO/elf/tst-tlsmod12.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/elf/tst-tlsmod12.c')
-rw-r--r--REORG.TODO/elf/tst-tlsmod12.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/REORG.TODO/elf/tst-tlsmod12.c b/REORG.TODO/elf/tst-tlsmod12.c
new file mode 100644
index 0000000000..d0be51891a
--- /dev/null
+++ b/REORG.TODO/elf/tst-tlsmod12.c
@@ -0,0 +1,12 @@
+#include "tst-tls10.h"
+
+extern __thread struct A a2 __attribute__((tls_model("initial-exec")));
+
+void
+check1 (void)
+{
+ if (a1.a != 4 || a1.b != 5 || a1.c != 6)
+ abort ();
+ if (a2.a != 7 || a2.b != 8 || a2.c != 9)
+ abort ();
+}