Add static tls test

This commit is contained in:
Jeremy Soller
2019-06-30 21:30:34 -06:00
parent 6203a85713
commit a72c5f4aca
4 changed files with 13 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ EXPECT_NAMES=\
time/mktime \
time/strftime \
time/time \
tls \
unistd/access \
unistd/brk \
unistd/dup \
View File
+2
View File
@@ -0,0 +1,2 @@
0 == 0
1 == 1
+10
View File
@@ -0,0 +1,10 @@
#include <stdio.h>
_Thread_local int tbss = 0;
_Thread_local int tdata = 1;
int main(int argc, char ** argv) {
printf("%d == 0\n", tbss);
printf("%d == 1\n", tdata);
return 0;
}