mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
1947bfcf81
This commit adds type information for global variables in the litmus tests in order to allow easier use with klitmus7. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
20 lines
246 B
Text
20 lines
246 B
Text
C CoWW+poonceonce
|
|
|
|
(*
|
|
* Result: Never
|
|
*
|
|
* Test of write-write coherence, that is, whether or not two successive
|
|
* writes to the same variable are ordered.
|
|
*)
|
|
|
|
{
|
|
int x;
|
|
}
|
|
|
|
P0(int *x)
|
|
{
|
|
WRITE_ONCE(*x, 1);
|
|
WRITE_ONCE(*x, 2);
|
|
}
|
|
|
|
exists (x=1)
|