aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/inferior-assert/main.c
blob: 45d3bc779c53f6c4c081f1c6769b985e75fbf213 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
#include <assert.h>

const char *hello_world = "Hello, assertion!";

int main(int argc, const char* argv[])
{
    int *null_ptr = 0;
    printf("%s\n", hello_world);
    assert(null_ptr); // Assert here.
}