diff --git a/src/examples/halt.c b/src/examples/halt.c
new file mode 100644
index 0000000000000000000000000000000000000000..7d06f5c0169ee5d2cbd62a5901fe51aaae51dc82
--- /dev/null
+++ b/src/examples/halt.c
@@ -0,0 +1,14 @@
+/* halt.c
+
+   Simple program to test whether running a user program works.
+
+   Just invokes a system call that shuts down the OS. */
+
+#include <syscall.h>
+
+int
+main (void)
+{
+  halt ();
+  /* not reached */
+}