File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/test/run-make/sepcomp-inlining Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 10
10
$(RUSTC ) foo.rs --emit=llvm-ir -C codegen-units=3 \
11
11
-Z inline-in-all-cgus
12
12
[ " $$ (cat " $( TMPDIR) " /foo.*.ll | grep -c define\ i32\ .*inlined)" -eq " 0" ]
13
- [ " $$ (cat " $( TMPDIR) " /foo.*.ll | grep -c define\ internal\ i32\ .*inlined)" -eq " 1 " ]
13
+ [ " $$ (cat " $( TMPDIR) " /foo.*.ll | grep -c define\ internal\ i32\ .*inlined)" -eq " 2 " ]
14
14
[ " $$ (cat " $( TMPDIR) " /foo.*.ll | grep -c define\ hidden\ i32\ .*normal)" -eq " 1" ]
15
- [ " $$ (cat " $( TMPDIR) " /foo.*.ll | grep -c declare\ hidden\ i32\ .*normal)" -eq " 1 " ]
15
+ [ " $$ (cat " $( TMPDIR) " /foo.*.ll | grep -c declare\ hidden\ i32\ .*normal)" -eq " 2 " ]
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
+ #![ feature( start) ]
12
+
11
13
#[ inline]
12
14
fn inlined ( ) -> u32 {
13
15
1234
@@ -29,7 +31,10 @@ mod b {
29
31
}
30
32
}
31
33
32
- fn main ( ) {
34
+ #[ start]
35
+ fn start ( _: isize , _: * const * const u8 ) -> isize {
33
36
a:: f ( ) ;
34
37
b:: f ( ) ;
38
+
39
+ 0
35
40
}
You can’t perform that action at this time.
0 commit comments