Lines Matching refs:old_val
98 Type old_val = 42;
100 Type var = old_val;
101 EXPECT_TRUE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val,
103 EXPECT_FALSE(atomic_compare_exchange_strong((T*)&var, &old_val, new_val,
105 EXPECT_EQ(new_val, old_val);
108 Type old_val = 42;
110 Type var = old_val;
111 EXPECT_TRUE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val,
113 EXPECT_FALSE(atomic_compare_exchange_weak((T*)&var, &old_val, new_val,
115 EXPECT_EQ(new_val, old_val);