Home | History | Annotate | Download | only in tests

Lines Matching refs:local_var

21 __thread int local_var = 100;
25 local_var = 1000;
27 // local_var should be reset by threads
41 local_var++;
42 *data = local_var;
57 ASSERT_EQ(local_var, 1000);
60 // Update shared_var, local_var remains 1000.
62 ASSERT_EQ(local_var, 1000);
66 ASSERT_EQ(local_var, 1000);
70 ASSERT_EQ(local_var, 1000);
76 ASSERT_EQ(local_var, 1000);
80 // this thread's local_var and shared_var are not changed.
81 // TLS local_var is initialized to 100 in a thread.
83 ASSERT_EQ(local_var, 1000);
87 ASSERT_EQ(local_var, 1000);
91 ASSERT_EQ(local_var, 1000);