Files
clang-p2996/lldb/lit/Expr/TestMultilineExpr.test
Stefan Granitz 21d1754f7c TestMultilineExpr: validate evaluation for expressions that span multiple lines
Summary:
When LLDB successfully parses a command (like "expression" in this case) and determines incomplete input, the user can continue typing on multiple lines (in this case "2+3"). This should provide the correct result.
Note that LLDB reverts input from the additional lines, so they are not present in the output.

Reviewers: vsk, davide, aprantl

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D52270

llvm-svn: 343860
2018-10-05 16:49:53 +00:00

10 lines
220 B
Plaintext

# RUN: %lldb -b -s %s | FileCheck %s
# In terminal sessions LLDB hides input from subsequent lines so it's not visible in the output we check below.
expression
2+
3
# CHECK: (lldb) expression
# CHECK: (int) {{.*}} = 5