mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #286 from geky/devel_gt_client_iar
[test porting] Fixed IAR issues in tests
commit
870f8390cf
|
@ -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;
|
||||
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue