Discussion thread: https://lists.llvm.org/pipermail/llvm-dev/2021-January/148048.html Move debuginfo-test into a subdirectory of a new top-level directory, called cross-project-tests. The new name replaces "debuginfo-test" as an LLVM project enabled via LLVM_ENABLE_PROJECTS. Differential Revision: https://reviews.llvm.org/D95339 Reviewed by: aprantl
26 lines
518 B
C++
26 lines
518 B
C++
// REQUIRES: lldb
|
|
// Purpose:
|
|
// Check that we can use label-relative line numbers.
|
|
//
|
|
// RUN: %dexter_regression_test -v -- %s | FileCheck %s
|
|
//
|
|
// CHECK: label_offset.cpp: (1.0000)
|
|
|
|
int main() { // DexLabel('main')
|
|
int var = 0;
|
|
var = var;
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
DexExpectWatchValue('var', '0', from_line=ref('main')+2, to_line=ref('main')+3)
|
|
DexExpectProgramState({
|
|
'frames': [
|
|
{
|
|
'location': { 'lineno': ref('main')+2 },
|
|
'watches': { 'var': '0' }
|
|
}
|
|
]
|
|
})
|
|
*/
|