72800d3b89
Except for `simd-intrinsic/`, which has a lot of files containing multiple types like `u8x64` which really are better when hand-formatted. There is a surprising amount of two-space indenting in this directory. Non-trivial changes: - `rustfmt::skip` needed in `debug-column.rs` to preserve meaning of the test. - `rustfmt::skip` used in a few places where hand-formatting read more nicely: `enum/enum-match.rs` - Line number adjustments needed for the expected output of `debug-column.rs` and `coroutine-debug.rs`.
18 lines
498 B
Rust
18 lines
498 B
Rust
#![crate_type = "rlib"]
|
|
//@ compile-flags: -Copt-level=3 -g
|
|
//
|
|
|
|
#[no_mangle]
|
|
#[inline(always)]
|
|
pub extern "C" fn callee(x: u32) -> u32 {
|
|
x + 4
|
|
}
|
|
|
|
// CHECK-LABEL: caller
|
|
// CHECK: dbg{{.}}value({{(metadata )?}}i32 %y, {{(metadata )?}}!{{.*}}, {{(metadata )?}}!DIExpression(DW_OP_constu, 3, DW_OP_minus, DW_OP_stack_value){{.*}} [[A:![0-9]+]]
|
|
// CHECK: [[A]] = !DILocation(line: {{.*}}, scope: {{.*}}, inlinedAt: {{.*}})
|
|
#[no_mangle]
|
|
pub extern "C" fn caller(y: u32) -> u32 {
|
|
callee(y - 3)
|
|
}
|