File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
symbols-include-type-name Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ fn outer<T>() {
1313 fn inner ( ) -> u32 {
1414 8675309
1515 }
16+ inner ( ) ;
1617}
1718
1819extern "C" fn outer_foreign < T > ( ) {
1920 #[ allow( dead_code) ]
2021 fn inner ( ) -> u32 {
2122 11235813
2223 }
24+ inner ( ) ;
2325}
2426
2527fn main ( ) {
Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11+
12+
1113fn magic_fn ( ) -> usize {
1214 1234
1315}
@@ -24,4 +26,8 @@ mod b {
2426 }
2527}
2628
27- fn main ( ) { }
29+ fn main ( ) {
30+ magic_fn ( ) ;
31+ a:: magic_fn ( ) ;
32+ b:: magic_fn ( ) ;
33+ }
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ pub static Y: &'static [u8] = include_bytes!("lib.rs");
1414trait Foo { fn dummy ( & self ) { } }
1515impl Foo for usize { }
1616
17- pub fn dummy ( ) {
17+ #[ no_mangle]
18+ pub extern "C" fn dummy ( ) {
1819 // force the vtable to be created
1920 let _x = & 1usize as & Foo ;
2021}
Original file line number Diff line number Diff line change @@ -17,3 +17,8 @@ impl Def {
1717 Def { id : id }
1818 }
1919}
20+
21+ #[ no_mangle]
22+ pub fn user ( ) {
23+ let _ = Def :: new ( 0 ) ;
24+ }
You can’t perform that action at this time.
0 commit comments