diff options
Diffstat (limited to 'tests/run-make/static-extern-type/define-foo.c')
-rw-r--r-- | tests/run-make/static-extern-type/define-foo.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run-make/static-extern-type/define-foo.c b/tests/run-make/static-extern-type/define-foo.c new file mode 100644 index 000000000..39be5acfa --- /dev/null +++ b/tests/run-make/static-extern-type/define-foo.c @@ -0,0 +1,11 @@ +#include <stdint.h> + +struct Foo { + uint8_t x; +}; + +struct Foo FOO = { 42 }; + +uint8_t bar(const struct Foo* foo) { + return foo->x; +} |