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