xref: /llvm-project/lldb/test/API/lang/cpp/thread_local/main.cpp (revision 71db787c4583b5b05b9066509c36eb996924aeda)
1 int storage = 45;
2 thread_local int tl_global_int = 123;
3 thread_local int *tl_global_ptr = &storage;
4 
main(int argc,char ** argv)5 int main(int argc, char **argv) {
6   thread_local int tl_local_int = 321;
7   thread_local int *tl_local_ptr = nullptr;
8   tl_local_ptr = &tl_local_int;
9   tl_local_int++;
10   return 0; // Set breakpoint here
11 }
12