This test fails with AV during RRD test. Is it bug?
struct FailTest:
rl::test_suite<FailTest, 1>
{
std::atomic<int*> m;
void before()
{
m($)=0;
}
void thread(unsigned thread_index)
{
for(int t=0; t<100; t++)
{
int* n(NULL);
if
( !m($).compare_exchange_weak
( n,
NULL
)
)
{
(*n)++; //AV
}
}
}
void after()
{
}
void invariant()
{
}
};//struct FailTest