summaryrefslogtreecommitdiff
path: root/cross-project-tests/debuginfo-tests/dexter/feature_tests/commands/penalty/dex_declare_file.cpp
blob: 6c0b154144649a2ccb905954b91d13dd3bbff20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Purpose:
//    Check that \DexDeclareFile causes a DexExpectWatchValue's to generate a
//    missing value penalty when the declared path is incorrect.
//
// UNSUPPORTED: system-darwin
//
//
// RUN: %dexter_regression_test_cxx_build %s -o %t
// RUN: not %dexter_regression_test_run --binary %t -- %s | FileCheck --dump-input-context=999999999 %s
// CHECK: dex_declare_file.cpp

int main() {
  int result = 0;
  return result; //DexLabel('return')
}

// DexDeclareFile('this_file_does_not_exist.cpp')
// DexExpectWatchValue('result', 0, on_line='return')