summaryrefslogtreecommitdiffstats
path: root/tests/run-make/cross-lang-lto-pgo-smoketest/cmain.c
blob: e3f24828be371c3828bece6ed9ad0b58715be781 (plain)
1
2
3
4
5
6
7
8
9
10
11
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()) * 0;
}