1#include <stdio.h>
2
3const char *hello_world = "Hello, segfault!";
4
5int main(int argc, const char* argv[])
6{
7 int *null_ptr = 0;
8 printf(format: "%s\n", hello_world);
9 printf(format: "Now crash %d\n", *null_ptr); // Crash here.
10}
11

source code of lldb/test/API/functionalities/inferior-crashing/main.c