mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
433da1fc04
They pass fine.
13 lines
287 B
C
13 lines
287 B
C
#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;
|
|
}
|