mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
21 lines
454 B
Rust
21 lines
454 B
Rust
// Check that DIFlagAllCallsDescribed is set on subprogram definitions.
|
|
|
|
//@ ignore-msvc (CodeView does not use DIFlagAllCallsDescribed)
|
|
//@ compile-flags: -C debuginfo=2 -C opt-level=1 -C no-prepopulate-passes
|
|
|
|
// CHECK: {{.*}}DISubprogram{{.*}}name: "foo"{{.*}}DIFlagAllCallsDescribed{{.*}}
|
|
|
|
#[no_mangle]
|
|
#[inline(never)]
|
|
pub fn foo(x: i32) -> i32 {
|
|
bar(x + 1)
|
|
}
|
|
|
|
#[no_mangle]
|
|
#[inline(never)]
|
|
pub fn bar(x: i32) -> i32 {
|
|
x * 2
|
|
}
|
|
|
|
fn main() {}
|