rust/tests/run-make-fulldeps/cross-lang-lto-clang/cmain.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
281 B
C
Raw Normal View History

#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();
}