Files
pplus-web/tests/corpus/45-parallel-neighbour-race.pseudo
T
2026-10-05 03:03:38 +00:00

9 lines
215 B
Plaintext

// Reading a neighbour that another pass writes is also a race, even with no shared scalar.
// STOPS: race
DECLARE A : LIST OF INTEGER
A <- [5, 6, 7, 8]
PARALLEL FOR I <- 0 TO 3
A[I] <- A[I + 1]
NEXT I
OUTPUT A