summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter/feature_tests/subtools/view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests/dexter/feature_tests/subtools/view.cpp')
-rw-r--r--debuginfo-tests/dexter/feature_tests/subtools/view.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/debuginfo-tests/dexter/feature_tests/subtools/view.cpp b/debuginfo-tests/dexter/feature_tests/subtools/view.cpp
new file mode 100644
index 00000000000..9c4f2573361
--- /dev/null
+++ b/debuginfo-tests/dexter/feature_tests/subtools/view.cpp
@@ -0,0 +1,21 @@
+// Purpose:
+// Check the `view` subtool works with typical inputs.
+//
+// REQUIRES: system-linux, lldb
+//
+// RUN: %dexter test --fail-lt 1.0 -w \
+// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" \
+// RUN: --results %t -- %s
+//
+// RUN: %dexter 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