fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
250 B16 linesraw
1#include <stdint.h>
2
3typedef struct TestStruct {
4        uint8_t x;
5        int32_t y;
6} TestStruct;
7
8typedef int callback(TestStruct s);
9
10uint32_t call(callback *c) {
11        TestStruct s;
12        s.x = 'a';
13        s.y = 3;
14
15        return c(s);
16}