summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/Driver/TestRepl.test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/Shell/Driver/TestRepl.test')
-rw-r--r--lldb/test/Shell/Driver/TestRepl.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/Shell/Driver/TestRepl.test b/lldb/test/Shell/Driver/TestRepl.test
new file mode 100644
index 00000000000..083863985a1
--- /dev/null
+++ b/lldb/test/Shell/Driver/TestRepl.test
@@ -0,0 +1,7 @@
+# RUN: echo ':quit' | %lldb -x --repl -O 'expr 42' -S %S/Inputs/Print2.in -o 'expr 999999' -s %s 2>&1 | FileCheck %s
+# CHECK: {{w}}arning: commands specified to run after file load (via -o or -s) are ignored in REPL mode
+# CHECK: (int) $0 = 42
+# CHECK: (int) $1 = 2
+# CHECK-NOT: 999999
+
+expr 999999
OpenPOWER on IntegriCloud