1 | // Purpose: |
2 | // Check the `view` subtool works with typical inputs. |
3 | // |
4 | // RUN: %dexter_regression_test_build %s -o %t |
5 | // RUN: %dexter_regression_test_run --binary %t --results %t.results -- %s |
6 | // |
7 | // RUN: %dexter_base view %t.results/view.cpp.dextIR | FileCheck %s |
8 | // CHECK: ## BEGIN |
9 | // CHECK: ## END |
10 | // |
11 | // # [TODO] This doesn't run if FileCheck fails! |
12 | // RUN: rm -rf %t |
13 | |
14 | int main() { |
15 | int a = 0; |
16 | return 0; //DexLabel('ret') |
17 | } |
18 | // DexExpectWatchValue('a', '0', on_line=ref('ret')) |
19 | |