aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
blob: 03e5944389fa80c98d6c2925c9c6221f9bf7af75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "bar.h"

struct example
{
    int a;
    char b;
    int *c;
};

static void foo(struct example *const st)
{
    if (st)
    {
        if (st->c)
        {
            (*st->c)++;
        }
    }
}

_Noreturn void main(void)
{
    static struct example st;

    foo(&st);

    bar(st.a);

    for (;;);
}