Skip to content

Commit 529da7c

Browse files
bridadan0xc0170
authored andcommitted
Tests - use MBED_ALIGN instead of specific compiler attributes
This fixes the build of vector realloc test for all compilers
1 parent ce83029 commit 529da7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/tests/mbed/vtor_reloc/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "test_env.h"
66
#include "cmsis_nvic.h"
7+
#include "toolchain.h"
78
#include <string.h>
89

910
#if defined(TARGET_SAMR21G18A) || defined(TARGET_SAMD21J18A) || defined(TARGET_SAMD21G18A)
@@ -31,7 +32,7 @@ DigitalOut out(PIN_OUT);
3132
DigitalOut myled(LED1);
3233

3334
volatile int checks = 0;
34-
uint32_t int_table[NUM_VECTORS] __attribute__ ((aligned(256)));
35+
uint32_t int_table[NUM_VECTORS] MBED_ALIGN(256);
3536

3637
#define FALLING_EDGE_COUNT 5
3738

0 commit comments

Comments
 (0)