1 // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // ignore-tidy-linelength
12 // compile-flags:-Zprint-trans-items=eager
16 // aux-build:cgu_extern_closures.rs
17 extern crate cgu_extern_closures;
19 //~ TRANS_ITEM fn cross_crate_closures::main[0]
22 //~ TRANS_ITEM fn cgu_extern_closures::inlined_fn[0]
23 //~ TRANS_ITEM fn cgu_extern_closures::inlined_fn[0]::{{closure}}[0]
24 let _ = cgu_extern_closures::inlined_fn(1, 2);
26 //~ TRANS_ITEM fn cgu_extern_closures::inlined_fn_generic[0]<i32>
27 //~ TRANS_ITEM fn cgu_extern_closures::inlined_fn_generic[0]::{{closure}}[0]<i32>
28 let _ = cgu_extern_closures::inlined_fn_generic(3, 4, 5i32);
30 // Nothing should be generated for this call, we just link to the instance instance
31 // in the extern crate.
32 let _ = cgu_extern_closures::non_inlined_fn(6, 7);
35 //~ TRANS_ITEM drop-glue i8