Add static tls test
This commit is contained in:
@@ -71,6 +71,7 @@ EXPECT_NAMES=\
|
||||
time/mktime \
|
||||
time/strftime \
|
||||
time/time \
|
||||
tls \
|
||||
unistd/access \
|
||||
unistd/brk \
|
||||
unistd/dup \
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
0 == 0
|
||||
1 == 1
|
||||
+10
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user