projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add tls_init_dlopen test and fix tls_align_dlopen.mk so it is run properly
[libc-test]
/
src
/
functional
/
tls_init_dso.c
diff --git a/src/functional/tls_init_dso.c
b/src/functional/tls_init_dso.c
new file mode 100644
(file)
index 0000000..
eff1a58
--- /dev/null
+++ b/
src/functional/tls_init_dso.c
@@ -0,0
+1,8
@@
+static char buf[] = "foobar";
+__thread char *tls = buf;
+
+char *gettls()
+{
+ return tls;
+}
+