]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/issue-25581/test.c
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / run-make-fulldeps / issue-25581 / test.c
1 #include <stddef.h>
2 #include <stdint.h>
3
4 struct ByteSlice {
5         uint8_t *data;
6         size_t len;
7 };
8
9 size_t slice_len(struct ByteSlice bs) {
10         return bs.len;
11 }
12
13 uint8_t slice_elem(struct ByteSlice bs, size_t idx) {
14         return bs.data[idx];
15 }