rust/src/test/run-make/issue-28766
Björn Steinbrink f10af2e5fa Translate zero-sized return types as void
The only way to get a value for a zero-sized type is `undef`, so
there's really no point in actually having a return type other than
void for such types. Also, while the comment in return_type_is_void
mentioned something about aiding C ABI support, @eddyb correctly
pointed out on IRC that there is no such thing as a zero-sized type in
C. And even with clang, which allows empty structs, those get
translated as void return types as well.

Fixes #28766
2016-01-15 18:29:29 +01:00
..
foo.rs Translate zero-sized return types as void 2016-01-15 18:29:29 +01:00
main.rs Translate zero-sized return types as void 2016-01-15 18:29:29 +01:00
Makefile Translate zero-sized return types as void 2016-01-15 18:29:29 +01:00