1 //===-- main.c --------------------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #include <stdio.h> 10 11 const char *hello_world = "Hello, segfault!"; 12 13 int main(int argc, const char* argv[]) 14 { 15 int *null_ptr = 0; 16 printf("%s\n", hello_world); 17 printf("Now crash %d\n", *null_ptr); // Crash here. 18 } 19