diff options
author | iximeow <me@iximeow.net> | 2025-02-06 00:19:11 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2025-02-06 00:19:11 -0800 |
commit | e2b05ce19c48f34b0fbf3661a6079157eff26fa7 (patch) | |
tree | 6ff9ff50f4ab091db1963a9a13b4643d4e421723 /tests/no_std_check/src/main.rs | |
parent | 9822e508fd7653f0a8b3c0c5dd3222c24cc09821 (diff) |
actually check no-std configuration does not transitively depend on std
Diffstat (limited to 'tests/no_std_check/src/main.rs')
-rw-r--r-- | tests/no_std_check/src/main.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/no_std_check/src/main.rs b/tests/no_std_check/src/main.rs new file mode 100644 index 0000000..73b5d56 --- /dev/null +++ b/tests/no_std_check/src/main.rs @@ -0,0 +1,11 @@ +#![no_std] +#![no_main] + +#[allow(unused_imports)] +use yaxpeax_arm; + +#[panic_handler] +fn panic(_: &core::panic::PanicInfo) -> ! { loop {} } + +#[no_mangle] +pub extern "C" fn _start() -> ! { loop {} } |