xref: /aosp_15_r20/external/stg/test_cases/info_tests/symbol/tls.cc (revision 9e3b08ae94a55201065475453d799e8b1378bea6)
1 // Test has to include at least two TLS symbols to exercise matching.
2 
3 thread_local int foo = 0;
4 
5 namespace ns {
6 
7 thread_local short foo = 0;
8 
9 }
10 
bar()11 int bar() {
12   thread_local static long local_foo = 0;
13   return foo + ns::foo + local_foo;
14 }
15