blob: 651bbe5a09552455593a8d9480f03822a8700245 [file] [log] [blame]
Andrew Kayloree7c0d22013-01-25 22:50:58 +00001RUN: llvm-rtdyld -printline %p/Inputs/test-inline.o \
David Blaikie1e919432018-12-21 22:25:01 +00002RUN: | FileCheck %s
Keno Fischerb6976af2015-05-21 21:24:32 +00003RUN: llvm-rtdyld -printdebugline %p/Inputs/test-inline.o \
David Blaikie1e919432018-12-21 22:25:01 +00004RUN: | FileCheck %s
Andrew Kaylore27a7872013-01-26 00:28:05 +00005RUN: llvm-rtdyld -printline %p/Inputs/test-parameters.o \
David Blaikie1e919432018-12-21 22:25:01 +00006RUN: | FileCheck %s
Keno Fischerb6976af2015-05-21 21:24:32 +00007RUN: llvm-rtdyld -printdebugline %p/Inputs/test-parameters.o \
David Blaikie1e919432018-12-21 22:25:01 +00008RUN: | FileCheck %s
Andrew Kayloree7c0d22013-01-25 22:50:58 +00009
10; This test verifies that relocations are correctly applied to the
Andrew Kaylore27a7872013-01-26 00:28:05 +000011; .debug_line section and exercises DIContext::getLineInfoForAddressRange().
Andrew Kayloree7c0d22013-01-25 22:50:58 +000012
David Blaikie1e919432018-12-21 22:25:01 +000013CHECK: 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