summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/dexter/feature_tests/commands/perfect/unreachable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests/dexter/feature_tests/commands/perfect/unreachable.cpp')
-rw-r--r--debuginfo-tests/dexter/feature_tests/commands/perfect/unreachable.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/debuginfo-tests/dexter/feature_tests/commands/perfect/unreachable.cpp b/debuginfo-tests/dexter/feature_tests/commands/perfect/unreachable.cpp
new file mode 100644
index 00000000000..c53e07fe4a4
--- /dev/null
+++ b/debuginfo-tests/dexter/feature_tests/commands/perfect/unreachable.cpp
@@ -0,0 +1,16 @@
+// Purpose:
+// Check that \DexUnreachable has no effect if the command line is never
+// stepped on.
+//
+// REQUIRES: system-linux, lldb
+//
+// RUN: %dexter test --fail-lt 1.0 -w \
+// RUN: --builder 'clang' --debugger 'lldb' --cflags "-O0 -g" -- %s \
+// RUN: | FileCheck %s
+// CHECK: unreachable.cpp:
+
+int main()
+{
+ return 0;
+ return 1; // DexUnreachable()
+}
OpenPOWER on IntegriCloud