diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..03e5944 --- /dev/null +++ b/src/main.c @@ -0,0 +1,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 (;;); +} |
