Skip to content

Commit 870f839

Browse files
Merge pull request #286 from geky/devel_gt_client_iar
[test porting] Fixed IAR issues in tests
2 parents 2d1548f + 8300c2e commit 870f839

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

TESTS/mbed_drivers/stl_features/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
#include "mbed.h"
18+
#include "greentea-client/test_env.h"
19+
#include "unity/unity.h"
20+
#include "utest/utest.h"
1721
#include <stdio.h>
1822
#include <string.h>
1923
#include <algorithm>
@@ -22,10 +26,6 @@
2226
#include <queue>
2327
#include <map>
2428
#include <math.h>
25-
#include "mbed.h"
26-
#include "greentea-client/test_env.h"
27-
#include "unity/unity.h"
28-
#include "utest/utest.h"
2929

3030
using namespace utest::v1;
3131

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)