1 //===-- main.c --------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 #include <stdio.h>
9 
10 int main(int argc, const char* argv[])
11 {
12     int *null_ptr = 0;
13     printf("Hello, segfault!\n");
14     printf("Now crash %d\n", *null_ptr); // Crash here.
15 }
16