summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/lang/c/modules/main.c
blob: df321a75faaf1dc87c94e249fa4c88bb88541212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdlib.h>

int printf(const char * __restrict format, ...);

typedef struct {
    int a;
    int b;
} MYFILE;

int main()
{
    MYFILE *myFile = malloc(sizeof(MYFILE));

    myFile->a = 5;
    myFile->b = 9;

    printf("%d\n", myFile->a + myFile->b); // Set breakpoint 0 here.

    free(myFile);
}