1/*
2 * Copyright 2017, Data61, CSIRO (ABN 41 687 119 230)
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <camkes.h>
8#include <stdio.h>
9
10int run(void)
11{
12
13    printf("struct: %s: height plus age is %d\n", config.name, config.age + config.height);
14    printf("inline_struct: %d: height plus age is %d\n", inline_struct.age, inline_struct.height);
15    printf("nested_struct: %d: height \n", nested_struct.c.a);
16    printf("array_struct: contains %zd items, first one is %d\n", sizeof(array_struct) / sizeof(array_struct[0]), array_struct[0].a);
17    printf("numbers: contains %zd items, first one is %d\n", sizeof(numbers) / sizeof(numbers[0]), numbers[0]);
18    printf("strings: contains %zd items, first one is \"%s\"\n", sizeof(strings) / sizeof(strings[0]), strings[0]);
19    printf("array_in_struct: array length: %zd, first element %d\n", sizeof(array_in_struct.b) / sizeof(array_in_struct.b[0]), array_in_struct.b[0]);
20    return 0;
21}
22