2018-05-12 07:45:30 +08:00
|
|
|
#![feature(lang_items)]
|
2018-02-01 02:04:01 +08:00
|
|
|
#![allow(bad_style)]
|
2018-02-19 01:15:57 +08:00
|
|
|
#![allow(unused_imports)]
|
|
|
|
#![no_std]
|
|
|
|
|
2018-05-12 07:45:30 +08:00
|
|
|
extern crate compiler_builtins as builtins;
|
2018-02-01 02:04:01 +08:00
|
|
|
|
2019-05-15 05:33:08 +08:00
|
|
|
#[cfg(all(
|
|
|
|
target_arch = "arm",
|
|
|
|
not(any(target_env = "gnu", target_env = "musl")),
|
|
|
|
target_os = "linux",
|
|
|
|
test
|
|
|
|
))]
|
2018-02-19 01:15:57 +08:00
|
|
|
extern crate utest_cortex_m_qemu;
|
|
|
|
|
2019-05-15 05:33:08 +08:00
|
|
|
#[cfg(all(
|
|
|
|
target_arch = "arm",
|
|
|
|
not(any(target_env = "gnu", target_env = "musl")),
|
|
|
|
target_os = "linux",
|
|
|
|
test
|
|
|
|
))]
|
2018-02-19 01:15:57 +08:00
|
|
|
#[macro_use]
|
|
|
|
extern crate utest_macros;
|
|
|
|
|
2019-05-15 05:33:08 +08:00
|
|
|
#[cfg(all(
|
|
|
|
target_arch = "arm",
|
|
|
|
not(any(target_env = "gnu", target_env = "musl")),
|
|
|
|
target_os = "linux",
|
|
|
|
test
|
|
|
|
))]
|
2018-02-19 01:15:57 +08:00
|
|
|
macro_rules! panic { // overrides `panic!`
|
|
|
|
($($tt:tt)*) => {
|
|
|
|
upanic!($($tt)*);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-02-01 02:04:01 +08:00
|
|
|
include!(concat!(env!("OUT_DIR"), "/generated.rs"));
|