1 #![crate_name="interesting"]
7 pub fn function_called_always() {
12 pub fn function_called_never() {
17 pub fn call_a_bunch_of_functions(fns: &[fn()]) {
19 // Indirect call promotion transforms the below into something like
22 // if f == function_called_always {
23 // function_called_always()
29 // where `function_called_always` actually gets inlined too.
50 pub fn call_a_bunch_of_trait_methods(trait_objects: &[&dyn Foo]) {
52 // Same as above, just with vtables in between
53 for x in trait_objects {