Skip to content
Snippets Groups Projects
Verified Commit a72c5f4a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add static tls test

parent 6203a857
No related branches found
No related tags found
No related merge requests found
...@@ -71,6 +71,7 @@ EXPECT_NAMES=\ ...@@ -71,6 +71,7 @@ EXPECT_NAMES=\
time/mktime \ time/mktime \
time/strftime \ time/strftime \
time/time \ time/time \
tls \
unistd/access \ unistd/access \
unistd/brk \ unistd/brk \
unistd/dup \ unistd/dup \
......
0 == 0
1 == 1
#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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment