xref: /llvm-project/llvm/test/DebugInfo/debuglineinfo.test (revision c3f30a7fc6a166910d4b674301e9108f537daf3c)
1RUN: llvm-rtdyld -printline %p/Inputs/test-inline.o \
2RUN:   | FileCheck %s
3RUN: llvm-rtdyld -printdebugline %p/Inputs/test-inline.o \
4RUN:   | FileCheck %s
5RUN: llvm-rtdyld -printline %p/Inputs/test-parameters.o \
6RUN:   | FileCheck %s
7RUN: llvm-rtdyld -printdebugline %p/Inputs/test-parameters.o \
8RUN:   | FileCheck %s
9
10; This test verifies that relocations are correctly applied to the
11; .debug_line section and exercises DIContext::getLineInfoForAddressRange().
12
13CHECK:      Function: _Z2f1v, Size = 6
14CHECK-NEXT:   Line info @ 0: test-inline.cpp, line:1
15CHECK-NEXT:   Line info @ 4: test-inline.cpp, line:1
16CHECK-NEXT: Function: _Z2f2v, Size = 11
17CHECK-NEXT:   Line info @ 0: test-inline.cpp, line:2
18CHECK-NEXT:   Line info @ 4: test-inline.cpp, line:2
19CHECK-NEXT:   Line info @ 9: test-inline.cpp, line:2
20