CoWW+poonceonce.litmus 237 B

123456789101112131415161718
  1. C CoWW+poonceonce
  2. (*
  3. * Result: Never
  4. *
  5. * Test of write-write coherence, that is, whether or not two successive
  6. * writes to the same variable are ordered.
  7. *)
  8. {}
  9. P0(int *x)
  10. {
  11. WRITE_ONCE(*x, 1);
  12. WRITE_ONCE(*x, 2);
  13. }
  14. exists (x=1)