Merge pull request #286 from geky/devel_gt_client_iar

[test porting] Fixed IAR issues in tests
Przemek Wirkus 2016-06-10 15:14:00 +01:00 committed by GitHub
commit 870f8390cf
2 changed files with 10 additions and 10 deletions

View File

@ -14,6 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity/unity.h"
#include "utest/utest.h"
#include <stdio.h>
#include <string.h>
#include <algorithm>
@ -22,10 +26,6 @@
#include <queue>
#include <map>
#include <math.h>
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity/unity.h"
#include "utest/utest.h"
using namespace utest::v1;

View File

@ -29,15 +29,15 @@ int testPacked() {
}
MBED_ALIGN(8) char a;
MBED_ALIGN(8) char b;
MBED_ALIGN(16) char c;
MBED_ALIGN(8) char d;
MBED_ALIGN(16) char e;
int testAlign() {
int failed = 0;
MBED_ALIGN(8) char a;
MBED_ALIGN(8) char b;
MBED_ALIGN(16) char c;
MBED_ALIGN(8) char d;
MBED_ALIGN(16) char e;
if(((uintptr_t)&a) & 0x7){
failed++;
}