Files
clang-p2996/cross-project-tests/debuginfo-tests/dexter/feature_tests/subtools/test/label_offset.cpp
James Henderson 1364750dad [RFC][debuginfo-test] Rename debug-info lit tests for general purposes
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
2021-06-28 11:31:40 +01:00

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' }
}
]
})
*/