]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/extern-fn-generic/test.c
Optimize `TyKind::eq`.
[rust.git] / tests / run-make-fulldeps / extern-fn-generic / test.c
1 #include <stdint.h>
2
3 typedef struct TestStruct {
4         uint8_t x;
5         int32_t y;
6 } TestStruct;
7
8 typedef int callback(TestStruct s);
9
10 uint32_t call(callback *c) {
11         TestStruct s;
12         s.x = 'a';
13         s.y = 3;
14
15         return c(s);
16 }