summary refs log tree commit diff
path: root/elf/tst-tls19mod2.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls19mod2.c')
-rw-r--r--elf/tst-tls19mod2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/elf/tst-tls19mod2.c b/elf/tst-tls19mod2.c
new file mode 100644
index 0000000000..cae702f67c
--- /dev/null
+++ b/elf/tst-tls19mod2.c
@@ -0,0 +1,13 @@
+static int __thread tbar __attribute__ ((tls_model ("initial-exec"))) = 666;
+
+void
+setter (int a)
+{
+  tbar = a;
+}
+
+int
+bar (void)
+{
+  return tbar;
+}