about summary refs log tree commit diff
path: root/src/test/run-make/thumb-none-qemu/example/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-make/thumb-none-qemu/example/src/main.rs')
-rw-r--r--src/test/run-make/thumb-none-qemu/example/src/main.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/test/run-make/thumb-none-qemu/example/src/main.rs b/src/test/run-make/thumb-none-qemu/example/src/main.rs
deleted file mode 100644
index 2abfde8e75f..00000000000
--- a/src/test/run-make/thumb-none-qemu/example/src/main.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-#![no_main]
-#![no_std]
-use core::fmt::Write;
-use cortex_m::asm;
-use cortex_m_rt::entry;
-use cortex_m_semihosting as semihosting;
-
-use panic_halt as _;
-
-#[entry]
-fn main() -> ! {
-    let x = 42;
-
-    loop {
-        asm::nop();
-
-        // write something through semihosting interface
-        let mut hstdout = semihosting::hio::hstdout().unwrap();
-        let _ = write!(hstdout, "x = {}\n", x);
-
-        // exit from qemu
-        semihosting::debug::exit(semihosting::debug::EXIT_SUCCESS);
-    }
-}