repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'block-5.9-2020-08-14' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git]
/
tools
/
memory-model
/
litmus-tests
/
CoWW+poonceonce.litmus
blob
0d9f0a9587996cd37950a7fd4e12eed1e7a7faf9
1
C CoWW+poonceonce
2
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
10
{}
11
12
P0(int *x)
13
{
14
WRITE_ONCE(*x, 1);
15
WRITE_ONCE(*x, 2);
16
}
17
18
exists (x=1)