Files
clang-p2996/debuginfo-tests/dexter/feature_tests/subtools/test/label_offset.cpp
OCHyams 35a7c4b4b1 [dexter] Add REQUIRES: lldb to the test label_offset.cpp
The test feature_tests/subtools/test/label_offset.cpp was added in 723a8ae5
for D101147.
2021-05-21 13:51:43 +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' }
}
]
})
*/