Skip to content

Commit 37968fe

Browse files
committed
[nrf fromlist] tests: arch: common: interrupt: Add missing volatile keyword
Variable test_vector was missing volatile keyword and test was failing on some targets when LTO was enabled (could also failed without LTO). Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no> Upstream PR #: 109119
1 parent bbb3a76 commit 37968fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/arch/common/interrupt/src/test_shared_irq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static inline void name(const void *data) \
2929
test_vector[idx] = result_vector[idx]; \
3030
} \
3131

32-
static uint32_t test_vector[TEST_VECTOR_SIZE] = {
32+
static volatile uint32_t test_vector[TEST_VECTOR_SIZE] = {
3333
};
3434

3535
static uint32_t result_vector[TEST_VECTOR_SIZE] = {

0 commit comments

Comments
 (0)