Sign in
chromium
/
external
/
github.com
/
kripken
/
emscripten
/
HEAD
/
.
/
test
/
pthread
/
test_pthread_tls_main.c
blob: dfc3754254183eac3f6f31e030b0bfb49de728e5 [
file
]
#include
<assert.h>
#include
<threads.h>
thread_local
int
tls
=
1330
;
thread_local
int
tls2
;
__attribute__
((
constructor
))
void
init_tls2
(
void
)
{
tls2
=
7
;
}
int
main
(
void
)
{
assert
(
tls
+
tls2
==
1330
+
7
);
return
0
;
}