summaryrefslogtreecommitdiffstats
path: root/packages/Python/lldbsuite/test/lang/c/modules/main.c
blob: 2b244bc38d02f87a224863b0af9bbc1512536cfd (plain)
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;
} FILE;

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

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

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

    free(myFile);
}
OpenPOWER on IntegriCloud