summaryrefslogtreecommitdiffstats
path: root/lldb/test/inferior-crashing/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/inferior-crashing/main.c')
-rw-r--r--lldb/test/inferior-crashing/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/inferior-crashing/main.c b/lldb/test/inferior-crashing/main.c
new file mode 100644
index 00000000000..9ce587e4145
--- /dev/null
+++ b/lldb/test/inferior-crashing/main.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(int argc, const char* argv[])
+{
+ int *null_ptr = 0;
+ printf("Hello, segfault!\n");
+ printf("Now crash %d\n", *null_ptr); // Crash here.
+}
OpenPOWER on IntegriCloud