summaryrefslogtreecommitdiffstats
path: root/tests/run-make-fulldeps/extern-fn-generic/test.c
blob: a8504ff2afb06077bd2262fffc3fea5bf6084fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdint.h>

typedef struct TestStruct {
        uint8_t x;
        int32_t y;
} TestStruct;

typedef int callback(TestStruct s);

uint32_t call(callback *c) {
        TestStruct s;
        s.x = 'a';
        s.y = 3;

        return c(s);
}