Paul E. McKenney | 1c27b64 | 2018-01-18 19:58:55 -0800 | [diff] [blame] | 1 | C CoWW+poonceonce |
2 | |||||
Paul E. McKenney | 8f32543 | 2018-02-20 15:25:04 -0800 | [diff] [blame^] | 3 | (* |
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. McKenney | 1c27b64 | 2018-01-18 19:58:55 -0800 | [diff] [blame] | 10 | {} |
11 | |||||
12 | P0(int *x) | ||||
13 | { | ||||
14 | WRITE_ONCE(*x, 1); | ||||
15 | WRITE_ONCE(*x, 2); | ||||
16 | } | ||||
17 | |||||
18 | exists (x=1) |