1 // Test that thread local data is handled correctly after forking without exec().
2 // RUN: %clangxx_lsan %s -o %t
11 __thread
void *thread_local_var
;
15 thread_local_var
= malloc(1337);
19 waitpid(pid
, &status
, 0);
20 assert(WIFEXITED(status
));
21 return WEXITSTATUS(status
);