]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/sepcomp-inlining/foo.rs
Rollup merge of #107058 - clubby789:eqeq-homoglyph, r=wesleywiser
[rust.git] / tests / run-make-fulldeps / sepcomp-inlining / foo.rs
1 #![feature(start)]
2
3 #[inline]
4 fn inlined() -> u32 {
5     1234
6 }
7
8 fn normal() -> u32 {
9     2345
10 }
11
12 mod a {
13     pub fn f() -> u32 {
14         ::inlined() + ::normal()
15     }
16 }
17
18 mod b {
19     pub fn f() -> u32 {
20         ::inlined() + ::normal()
21     }
22 }
23
24 #[start]
25 fn start(_: isize, _: *const *const u8) -> isize {
26     a::f();
27     b::f();
28
29     0
30 }