Skip to content

Commit ee28f3a

Browse files
committed
tests/three_keys_minimal: Add missing memory barriers to CHECK_VIOLATION_VOID
1 parent c2097f3 commit ee28f3a

File tree

1 file changed

+2
-0
lines changed
  • tests/three_keys_minimal

1 file changed

+2
-0
lines changed

tests/three_keys_minimal/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ Test(three_keys_minimal, direct_calls) {
8989
#define CHECK_VIOLATION_VOID(expr) \
9090
{ \
9191
expect_fault = true; \
92+
asm volatile("" : : : "memory"); \
9293
expr; \
9394
expect_fault = false; \
95+
asm volatile("" : : : "memory"); \
9496
}
9597

9698
/*

0 commit comments

Comments
 (0)