1 | int storage = 45; |
---|---|
2 | thread_local int tl_global_int = 123; |
3 | thread_local int *tl_global_ptr = &storage; |
4 | |
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 |