1C MP+pooncerelease+poacquireonce
2
3(*
4 * Result: Never
5 *
6 * This litmus test demonstrates that smp_store_release() and
7 * smp_load_acquire() provide sufficient ordering for the message-passing
8 * pattern.
9 *)
10
11{
12	int buf;
13	int flag;
14}
15
16P0(int *buf, int *flag) // Producer
17{
18	WRITE_ONCE(*buf, 1);
19	smp_store_release(flag, 1);
20}
21
22P1(int *buf, int *flag) // Consumer
23{
24	int r0;
25	int r1;
26
27	r0 = smp_load_acquire(flag);
28	r1 = READ_ONCE(*buf);
29}
30
31exists (1:r0=1 /\ 1:r1=0) (* Bad outcome. *)
32