xref: /aosp_15_r20/external/llvm/test/DebugInfo/debuglineinfo.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: llvm-rtdyld -printline %p/Inputs/test-inline.o \
2*9880d681SAndroid Build Coastguard WorkerRUN:   | FileCheck %s -check-prefix TEST_INLINE
3*9880d681SAndroid Build Coastguard WorkerRUN: llvm-rtdyld -printdebugline %p/Inputs/test-inline.o \
4*9880d681SAndroid Build Coastguard WorkerRUN:   | FileCheck %s -check-prefix TEST_INLINE
5*9880d681SAndroid Build Coastguard WorkerRUN: llvm-rtdyld -printline %p/Inputs/test-parameters.o \
6*9880d681SAndroid Build Coastguard WorkerRUN:   | FileCheck %s -check-prefix TEST_PARAMETERS
7*9880d681SAndroid Build Coastguard WorkerRUN: llvm-rtdyld -printdebugline %p/Inputs/test-parameters.o \
8*9880d681SAndroid Build Coastguard WorkerRUN:   | FileCheck %s -check-prefix TEST_PARAMETERS
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; This test verifies that relocations are correctly applied to the
11*9880d681SAndroid Build Coastguard Worker; .debug_line section and exercises DIContext::getLineInfoForAddressRange().
12*9880d681SAndroid Build Coastguard Worker; If relocations are not applied the first two functions will be reported as
13*9880d681SAndroid Build Coastguard Worker; both starting at address zero in the; line number table.
14*9880d681SAndroid Build Coastguard WorkerTEST_INLINE:      Function: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
15*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 0: test-inline.cpp, line:33
16*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 35: test-inline.cpp, line:34
17*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 165: test-inline.cpp, line:35
18*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Function: _Z3foov, Size = 3
19*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 0: test-inline.cpp, line:28
20*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 2: test-inline.cpp, line:29
21*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Function: main, Size = 146
22*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 0: test-inline.cpp, line:39
23*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 21: test-inline.cpp, line:41
24*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 39: test-inline.cpp, line:42
25*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 60: test-inline.cpp, line:44
26*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 80: test-inline.cpp, line:48
27*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 90: test-inline.cpp, line:45
28*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 95: test-inline.cpp, line:46
29*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 114: test-inline.cpp, line:48
30*9880d681SAndroid Build Coastguard WorkerTEST_INLINE-NEXT: Line info @ 141: test-inline.cpp, line:49
31*9880d681SAndroid Build Coastguard Worker
32*9880d681SAndroid Build Coastguard Worker; This test checks the case where all code is in a single section.
33*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS:      Function: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
34*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 0: test-parameters.cpp, line:33
35*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 35: test-parameters.cpp, line:34
36*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 165: test-parameters.cpp, line:35
37*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Function: _Z3foov, Size = 3
38*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 0: test-parameters.cpp, line:28
39*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 2: test-parameters.cpp, line:29
40*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Function: main, Size = 146
41*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 0: test-parameters.cpp, line:39
42*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 21: test-parameters.cpp, line:41
43*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 39: test-parameters.cpp, line:42
44*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 60: test-parameters.cpp, line:44
45*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 80: test-parameters.cpp, line:48
46*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 90: test-parameters.cpp, line:45
47*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 95: test-parameters.cpp, line:46
48*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 114: test-parameters.cpp, line:48
49*9880d681SAndroid Build Coastguard WorkerTEST_PARAMETERS-NEXT: Line info @ 141: test-parameters.cpp, line:49
50*9880d681SAndroid Build Coastguard Worker
51