Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test_conformance/c11_atomics/test_atomics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3171,8 +3171,10 @@ class CBasicTestFence

// who is the winner? - thread with lower private
// counter value
if (myValue == hisRealValue) // forbidden result - fence
// doesn't work

// forbidden result - fence doesn't work
if (myValue == hisRealValue
&& hisValue == myValueReadByHim)
{
log_error("ERROR: Atomic counter values #%u and "
"#%u are the same (%u)\n",
Expand Down
Loading