blob: 0d9f0a9587996cd37950a7fd4e12eed1e7a7faf9 [file] [log] [blame]
Paul E. McKenney1c27b642018-01-18 19:58:55 -08001C CoWW+poonceonce
2
Paul E. McKenney8f325432018-02-20 15:25:04 -08003(*
4 * Result: Never
5 *
6 * Test of write-write coherence, that is, whether or not two successive
7 * writes to the same variable are ordered.
8 *)
9
Paul E. McKenney1c27b642018-01-18 19:58:55 -080010{}
11
12P0(int *x)
13{
14 WRITE_ONCE(*x, 1);
15 WRITE_ONCE(*x, 2);
16}
17
18exists (x=1)