linux/tools/memory-model/litmus-tests/CoWR+poonceonce+Once.litmus

19 lines
154 B
Plaintext

C CoWR+poonceonce+Once
{}
P0(int *x)
{
int r0;
WRITE_ONCE(*x, 1);
r0 = READ_ONCE(*x);
}
P1(int *x)
{
WRITE_ONCE(*x, 2);
}
exists (x=1 /\ 0:r0=2)