2
0
Jeremy Soller 5 жил өмнө
parent
commit
a72c5f4aca

+ 1 - 0
tests/Makefile

@@ -71,6 +71,7 @@ EXPECT_NAMES=\
 	time/mktime \
 	time/strftime \
 	time/time \
+	tls \
 	unistd/access \
 	unistd/brk \
 	unistd/dup \

+ 0 - 0
tests/expected/tls.stderr


+ 2 - 0
tests/expected/tls.stdout

@@ -0,0 +1,2 @@
+0 == 0
+1 == 1

+ 10 - 0
tests/tls.c

@@ -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;
+}