]> git.lizzy.rs Git - rust.git/blob - tests/codegen/mir-inlined-line-numbers.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / codegen / mir-inlined-line-numbers.rs
1 // compile-flags: -O -g
2
3 #![crate_type = "lib"]
4
5 #[inline(always)]
6 fn foo() {
7     bar();
8 }
9
10 #[inline(never)]
11 #[no_mangle]
12 fn bar() {
13     panic!();
14 }
15
16 #[no_mangle]
17 pub fn example() {
18     foo();
19 }
20
21 // CHECK-LABEL: @example
22 // CHECK:   tail call void @bar(), !dbg [[DBG_ID:![0-9]+]]
23 // CHECK: [[DBG_ID]] = !DILocation(line: 7,
24 // CHECK-SAME:                     inlinedAt: [[INLINE_ID:![0-9]+]])
25 // CHECK: [[INLINE_ID]] = !DILocation(line: 18,