summaryrefslogtreecommitdiffstats
path: root/tests/run-make/static-extern-type/define-foo.c
blob: 39be5acfa11182f4c46ed1f09f3c4bf27100499b (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdint.h>

struct Foo {
    uint8_t x;
};

struct Foo FOO = { 42 };

uint8_t bar(const struct Foo* foo) {
    return foo->x;
}