aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/sigsegv/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/sigsegv/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/sigsegv/main.c b/test/sigsegv/main.c
new file mode 100644
index 0000000..428d168
--- /dev/null
+++ b/test/sigsegv/main.c
@@ -0,0 +1,16 @@
+#include "lib.h"
+
+#include <stdio.h>
+
+int main(void)
+{
+ puts("Started the test program.");
+ fflush(stdout);
+
+ printf("This will crash: %d.\n", data->x);
+
+ puts("You shouldn't see this.");
+ fflush(stdout);
+
+ return 0;
+}