summaryrefslogtreecommitdiff
path: root/riscv/riscv-probe/examples/abort
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/riscv-probe/examples/abort')
-rw-r--r--riscv/riscv-probe/examples/abort/main.c6
-rw-r--r--riscv/riscv-probe/examples/abort/rules.mk1
2 files changed, 7 insertions, 0 deletions
diff --git a/riscv/riscv-probe/examples/abort/main.c b/riscv/riscv-probe/examples/abort/main.c
new file mode 100644
index 0000000..cf5bcc0
--- /dev/null
+++ b/riscv/riscv-probe/examples/abort/main.c
@@ -0,0 +1,6 @@
+#include <stdlib.h>
+
+int main(int argc, char **argv)
+{
+ abort();
+}
diff --git a/riscv/riscv-probe/examples/abort/rules.mk b/riscv/riscv-probe/examples/abort/rules.mk
new file mode 100644
index 0000000..d569b90
--- /dev/null
+++ b/riscv/riscv-probe/examples/abort/rules.mk
@@ -0,0 +1 @@
+abort_objs = main.o