diff options
Diffstat (limited to 'tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c')
-rw-r--r-- | tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c b/tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c new file mode 100644 index 000000000..e62a40117 --- /dev/null +++ b/tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c @@ -0,0 +1,12 @@ +#include <stdint.h> + +// A trivial function defined in Rust, returning a constant value. This should +// always be inlined. +uint32_t rust_always_inlined(); + + +uint32_t rust_never_inlined(); + +int main(int argc, char** argv) { + return rust_never_inlined() + rust_always_inlined(); +} |