bolt/deps/llvm-18.1.8/lldb/test/API/functionalities/inferior-crashing/main.c
2025-02-14 19:21:04 +01:00

10 lines
222 B
C

#include <stdio.h>
const char *hello_world = "Hello, segfault!";
int main(int argc, const char* argv[])
{
int *null_ptr = 0;
printf("%s\n", hello_world);
printf("Now crash %d\n", *null_ptr); // Crash here.
}