]>
Commit | Line | Data |
---|---|---|
7453a54e SL |
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. | |
4 | // | |
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. | |
10 | ||
11 | // ignore-tidy-linelength | |
12 | // compile-flags:-Zprint-trans-items=eager | |
13 | ||
14 | #![deny(dead_code)] | |
15 | ||
16 | // aux-build:cgu_extern_closures.rs | |
17 | extern crate cgu_extern_closures; | |
18 | ||
19 | //~ TRANS_ITEM fn cross_crate_closures::main[0] | |
20 | fn main() { | |
21 | ||
54a0048b SL |
22 | //~ TRANS_ITEM fn cgu_extern_closures::inlined_fn[0] |
23 | //~ TRANS_ITEM fn cgu_extern_closures::inlined_fn[0]::{{closure}}[0] | |
7453a54e SL |
24 | let _ = cgu_extern_closures::inlined_fn(1, 2); |
25 | ||
54a0048b SL |
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> | |
7453a54e SL |
28 | let _ = cgu_extern_closures::inlined_fn_generic(3, 4, 5i32); |
29 | ||
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); | |
33 | } | |
34 | ||
35 | //~ TRANS_ITEM drop-glue i8 |