]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/static-extern-type/define-foo.c
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / run-make-fulldeps / static-extern-type / define-foo.c
1 #include <stdint.h>
2
3 struct Foo {
4     uint8_t x;
5 };
6
7 struct Foo FOO = { 42 };
8
9 uint8_t bar(const struct Foo* foo) {
10     return foo->x;
11 }