rust/tests/run-make/extern-fn-generic/test.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
250 B
C
Raw Permalink Normal View History

#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);
}