blob: 14d2f82b04ac6bd41ad4fdc831e131253e8a7a21 [file] [log] [blame]
Andrew Kayloree7c0d22013-01-25 22:50:58 +00001RUN: llvm-rtdyld -printline %p/Inputs/test-inline.o \
2RUN: | FileCheck %s -check-prefix TEST_INLINE
Andrew Kaylore27a7872013-01-26 00:28:05 +00003RUN: llvm-rtdyld -printline %p/Inputs/test-parameters.o \
4RUN: | FileCheck %s -check-prefix TEST_PARAMETERS
Andrew Kayloree7c0d22013-01-25 22:50:58 +00005
6; This test verifies that relocations are correctly applied to the
Andrew Kaylore27a7872013-01-26 00:28:05 +00007; .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.
Andrew Kayloree7c0d22013-01-25 22:50:58 +000010TEST_INLINE: Function: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
Andrew Kaylore27a7872013-01-26 00:28:05 +000011TEST_INLINE-NEXT: Line info @ 0: test-inline.cpp, line:33
12TEST_INLINE-NEXT: Line info @ 35: test-inline.cpp, line:34
13TEST_INLINE-NEXT: Line info @ 165: test-inline.cpp, line:35
Andrew Kayloree7c0d22013-01-25 22:50:58 +000014TEST_INLINE-NEXT: Function: _Z3foov, Size = 3
Andrew Kaylore27a7872013-01-26 00:28:05 +000015TEST_INLINE-NEXT: Line info @ 0: test-inline.cpp, line:28
16TEST_INLINE-NEXT: Line info @ 2: test-inline.cpp, line:29
17TEST_INLINE-NEXT: Line info @ 3: test-inline.cpp, line:29
Andrew Kayloree7c0d22013-01-25 22:50:58 +000018TEST_INLINE-NEXT: Function: main, Size = 146
Andrew Kaylore27a7872013-01-26 00:28:05 +000019TEST_INLINE-NEXT: Line info @ 0: test-inline.cpp, line:39
20TEST_INLINE-NEXT: Line info @ 21: test-inline.cpp, line:41
21TEST_INLINE-NEXT: Line info @ 39: test-inline.cpp, line:42
22TEST_INLINE-NEXT: Line info @ 60: test-inline.cpp, line:44
23TEST_INLINE-NEXT: Line info @ 80: test-inline.cpp, line:48
24TEST_INLINE-NEXT: Line info @ 90: test-inline.cpp, line:45
25TEST_INLINE-NEXT: Line info @ 95: test-inline.cpp, line:46
26TEST_INLINE-NEXT: Line info @ 114: test-inline.cpp, line:48
27TEST_INLINE-NEXT: Line info @ 141: test-inline.cpp, line:49
28TEST_INLINE-NEXT: Line info @ 146: test-inline.cpp, line:49
Andrew Kayloree7c0d22013-01-25 22:50:58 +000029
Andrew Kaylore27a7872013-01-26 00:28:05 +000030; This test checks the case where all code is in a single section.
31TEST_PARAMETERS: Function: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170
32TEST_PARAMETERS-NEXT: Line info @ 0: test-parameters.cpp, line:33
33TEST_PARAMETERS-NEXT: Line info @ 35: test-parameters.cpp, line:34
34TEST_PARAMETERS-NEXT: Line info @ 165: test-parameters.cpp, line:35
35TEST_PARAMETERS-NEXT: Function: _Z3foov, Size = 3
36TEST_PARAMETERS-NEXT: Line info @ 0: test-parameters.cpp, line:28
37TEST_PARAMETERS-NEXT: Line info @ 2: test-parameters.cpp, line:29
38TEST_PARAMETERS-NEXT: Function: main, Size = 146
39TEST_PARAMETERS-NEXT: Line info @ 0: test-parameters.cpp, line:39
40TEST_PARAMETERS-NEXT: Line info @ 21: test-parameters.cpp, line:41
41TEST_PARAMETERS-NEXT: Line info @ 39: test-parameters.cpp, line:42
42TEST_PARAMETERS-NEXT: Line info @ 60: test-parameters.cpp, line:44
43TEST_PARAMETERS-NEXT: Line info @ 80: test-parameters.cpp, line:48
44TEST_PARAMETERS-NEXT: Line info @ 90: test-parameters.cpp, line:45
45TEST_PARAMETERS-NEXT: Line info @ 95: test-parameters.cpp, line:46
46TEST_PARAMETERS-NEXT: Line info @ 114: test-parameters.cpp, line:48
47TEST_PARAMETERS-NEXT: Line info @ 141: test-parameters.cpp, line:49
48TEST_PARAMETERS-NEXT: Line info @ 146: test-parameters.cpp, line:49
Andrew Kayloree7c0d22013-01-25 22:50:58 +000049