about summary refs log tree commit diff
path: root/tests/debuginfo/auxiliary/cross_crate_spans.rs
blob: d0d32c2cbe32ae0ff4c6dcb3fea77f7b071a8086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![crate_type = "rlib"]

#![allow(unused_variables)]

//@ no-prefer-dynamic
//@ compile-flags:-g

pub fn generic_function<T: Clone>(val: T) -> (T, T) {
    let result = (val.clone(), val.clone());
    let a_variable: u32 = 123456789;
    let another_variable: f64 = 123456789.5;
    zzz();
    result
}

#[inline(never)]
fn zzz() {()}