Home | History | Annotate | Download | only in inferior-assert
      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 #include <assert.h>
     11 
     12 const char *hello_world = "Hello, assertion!";
     13 
     14 int main(int argc, const char* argv[])
     15 {
     16     int *null_ptr = 0;
     17     printf("%s\n", hello_world);
     18     assert(null_ptr); // Assert here.
     19 }
     20