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