summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter/feature_tests/subtools/view.cpp
blob: 43598dbdc9b91dc012b1f239e835b9be9f3f29d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Purpose:
//      Check the `view` subtool works with typical inputs.
//
// REQUIRES: system-linux, lldb
//
// RUN: %dexter_base test --fail-lt 1.0 -w \
// RUN:    --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" \
// RUN:    --results %t -- %s
//
// RUN: %dexter_base view %t/view.cpp.dextIR | FileCheck %s
// CHECK: ## BEGIN
// CHECK: ## END
//
// # [TODO] This doesn't run if FileCheck fails!
// RUN: rm -rf %t

int main() {
    int a = 0;
    return 0; //DexLabel('ret')
}
// DexExpectWatchValue('a', '0', on_line='ret')
OpenPOWER on IntegriCloud