Commit 1947bfcf authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

tools/memory-model: Add types to litmus tests



This commit adds type information for global variables in the litmus
tests in order to allow easier use with klitmus7.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 0a27ce6b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ C CoRR+poonceonce+Once
 * reads from the same variable are ordered.
 *)

{}
{
	int x;
}

P0(int *x)
{
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ C CoRW+poonceonce+Once
 * a given variable and a later write to that same variable are ordered.
 *)

{}
{
	int x;
}

P0(int *x)
{
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ C CoWR+poonceonce+Once
 * given variable and a later read from that same variable are ordered.
 *)

{}
{
	int x;
}

P0(int *x)
{
+3 −1
Original line number Diff line number Diff line
@@ -7,7 +7,9 @@ C CoWW+poonceonce
 * writes to the same variable are ordered.
 *)

{}
{
	int x;
}

P0(int *x)
{
+4 −1
Original line number Diff line number Diff line
@@ -10,7 +10,10 @@ C IRIW+fencembonceonces+OnceOnce
 * process?  This litmus test exercises LKMM's "propagation" rule.
 *)

{}
{
	int x;
	int y;
}

P0(int *x)
{
Loading