File: inlined-file0-line0-col0.test

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,998,492 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (34 lines) | stat: -rw-r--r-- 1,166 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# RUN: yaml2obj %S/Inputs/inlined-file0-line0-col0.yaml -o %t
# RUN: %lldb %t -s %s -o exit | FileCheck %s

#  1 void abort(void);
#  2 int g1 = 4, g2 = 6;
#  3
#  4 inline __attribute__((always_inline)) void bar(int q) {
#  5   if (q > 5)
#  6     abort();
#  7 }
#  8
#  9 inline __attribute__((always_inline)) void foo(int q) {
# 10   bar(q);
# 11 }
# 12
# 13 int main() {
# 14   foo(g1);
# 15   foo(g2);
# 16   return 0;
# 17 }

# The input object file contains a single abort invocation for the two inlined
# instances of foo() in main() at line 0. As the file, line and column numbers
# are all 0, file and line number information would be missing for foo and main
# in the lookup information.
#
# A line number 0 is not printed for main in this case, but the same holds
# for a non-inlined location with line number 0.

# CHECK: Summary: inlined-file0-line0-col0.test.tmp`main + 30 [inlined] bar + 4 at inlined-file0-line0-col0.c:6:5
# CHECK-NEXT:     inlined-file0-line0-col0.test.tmp`main + 26 [inlined] foo at inlined-file0-line0-col0.c:10:3
# CHECK-NEXT:     inlined-file0-line0-col0.test.tmp`main + 26 at inlined-file0-line0-col0.c

image lookup -a 0x1e