Skip to content

Commit 3dc7d3d

Browse files
committed
Fixed issue with stricter alignment than stack in IAR
1 parent 76dc58f commit 3dc7d3d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

TESTS/mbedmicro-mbed/attributes/attributes.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ int testPacked() {
2929
}
3030

3131

32+
MBED_ALIGN(8) char a;
33+
MBED_ALIGN(8) char b;
34+
MBED_ALIGN(16) char c;
35+
MBED_ALIGN(8) char d;
36+
MBED_ALIGN(16) char e;
37+
3238
int testAlign() {
3339
int failed = 0;
3440

35-
MBED_ALIGN(8) char a;
36-
MBED_ALIGN(8) char b;
37-
MBED_ALIGN(16) char c;
38-
MBED_ALIGN(8) char d;
39-
MBED_ALIGN(16) char e;
40-
4141
if(((uintptr_t)&a) & 0x7){
4242
failed++;
4343
}

0 commit comments

Comments
 (0)